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, NClassesAttributeSelector, 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, trainabout, crossValidate, crossValidate, crossValidate, done, externallyValidate, getAttributeSelector, getCitations, getFilter, getTrainTime, getValidationMethod, handleSetCommand, isTrained, isValidated, loadState, printDescription, printModel, resetModel, runCommand, saveState, setAttributeSelector, setComponent, setFilter, trainpublic void setOptions(java.util.List<java.lang.Object> Options)
throws java.lang.Exception
OptionssetOptions in interface OptionsOptions - Array of options as Objects - can be nulljava.lang.Exception - if problem with inputspublic java.lang.String printUsage()
OptionsprintUsage in interface Optionspublic 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()
BaseModelprintModel_protected in class BaseModelprotected void train_protected(Dataset TrainData)
BaseModeltrain_protected in class BaseModelTrainData - Training datapublic void run_protected(Dataset TrainData)
BaseModelrun_protected in class BaseModelTrainData - Training datapublic java.lang.String printCommand(java.util.List<java.lang.String> Command)
throws java.lang.Exception
PrintableprintCommand in interface PrintableprintCommand in class BaseModelCommand - 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
SavableDev 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 SavablesaveCommand in class BaseModelBasename - 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)
BaseModelBaseModel.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 BaseModelhtmlFormat - Whether to use HTML format