public class CumulantExpansionClassifier extends BaseClassifier implements Savable
Requires that dataset be a PrototypeDataset.
Usage: <filename> <order>
Implemented Print Commands
cumulants [<toPrint>] - Print out the most important cumulant functions for each class
Implemented Save Formats:
cumulants - Print the value of the cumulant between each variable and each class
Writes a file for each possible value of the class variable
ClassNames, NClasses
AttributeSelector, trained, TrainingStats, validated, ValidationStats
Constructor and Description |
---|
CumulantExpansionClassifier() |
Modifier and Type | Method and Description |
---|---|
void |
defineKnownCompounds(java.lang.String filename)
Define compositions of all known compounds.
|
java.lang.String |
printCommand(java.util.List<java.lang.String> Command)
Handles more complicated printing commands.
|
protected java.lang.String |
printModel_protected()
Internal method that handles printing the model as a string.
|
java.util.List<java.lang.String> |
printModelDescriptionDetails(boolean htmlFormat)
Print details of the model.
|
java.lang.String |
printUsage()
Print out required format for options.
|
void |
run_protected(Dataset TrainData)
Run a model without checking if stuff is trained (use carefully)
|
java.lang.String |
saveCommand(java.lang.String Basename,
java.lang.String Command)
Handles complicated saving commands.
|
void |
setNBins(int[] NBins)
Define number of desired bins of common compositions.
|
void |
setNComponents(int n)
Set the number of components in the material being considered.
|
void |
setOptions(java.util.List<java.lang.Object> Options)
Set any options for this object.
|
void |
setPhaseDiagramStats(PhaseDiagramStatistics PhaseDiagramStats)
Define the phase diagram statistics object used to make predictions.
|
protected void |
train_protected(Dataset TrainData)
Train a model without evaluating performance
|
clone, getClassNames, getNClasses, run, train
about, crossValidate, crossValidate, crossValidate, done, externallyValidate, getAttributeSelector, getCitations, getFilter, getTrainTime, getValidationMethod, handleSetCommand, isTrained, isValidated, loadState, printDescription, printModel, resetModel, runCommand, saveState, setAttributeSelector, setComponent, setFilter, train
public void setOptions(java.util.List<java.lang.Object> Options) throws java.lang.Exception
Options
setOptions
in interface Options
Options
- Array of options as Objects - can be null
java.lang.Exception
- if problem with inputspublic java.lang.String printUsage()
Options
printUsage
in interface Options
public void defineKnownCompounds(java.lang.String filename)
filename
- Path to file containing known compoundspublic void setNBins(int[] NBins)
NBins
- Number of compositions to store for each number of
compounds. x[0] is for binaries, x[1] is for ternaries, ...public void setNComponents(int n)
n
- Number of elementspublic void setPhaseDiagramStats(PhaseDiagramStatistics PhaseDiagramStats)
NOTE: Also sets NComponents.
PhaseDiagramStats
- protected java.lang.String printModel_protected()
BaseModel
printModel_protected
in class BaseModel
protected void train_protected(Dataset TrainData)
BaseModel
train_protected
in class BaseModel
TrainData
- Training datapublic void run_protected(Dataset TrainData)
BaseModel
run_protected
in class BaseModel
TrainData
- Training datapublic java.lang.String printCommand(java.util.List<java.lang.String> Command) throws java.lang.Exception
Printable
printCommand
in interface Printable
printCommand
in class BaseModel
Command
- Command specifying what to printjava.lang.Exception
- If command not understoodpublic java.lang.String saveCommand(java.lang.String Basename, java.lang.String Command) throws java.lang.Exception
Savable
Dev Note: Make sure to add save format to Javadoc. See Dataset as an example. Required format:
<save><p><b>format<b> - Description
<br>Optional room to talk more about format </save>
saveCommand
in interface Savable
saveCommand
in class BaseModel
Basename
- Name of file without extensionCommand
- Command specifying format in which to printjava.lang.Exception
- If command not understoodpublic java.util.List<java.lang.String> printModelDescriptionDetails(boolean htmlFormat)
BaseModel
BaseModel.printDescription(boolean)
.
Implementation note: No not add indentation for details. That is handled
by BaseModel.printDescription(boolean)
. You should also call the super
operation to get the Normalizer and Attribute selector settings
printModelDescriptionDetails
in class BaseModel
htmlFormat
- Whether to use HTML format