public class CompositionBasedCSPEngine extends CSPEngine
Implemented Commands:
attributes [<command...>] - Configure how attributes
are generated
DiagramStatistics, KnownCompounds, LastCompositionBin, LastNComponents, PerformanceStats| Constructor and Description |
|---|
CompositionBasedCSPEngine() |
| Modifier and Type | Method and Description |
|---|---|
protected double[] |
getProbabilities(BaseClassifier classifier,
java.util.List<java.lang.String> knownPrototypes,
PrototypeSiteInformation siteInfo,
PrototypeEntry entryToPredict)
Calculate probability that a compound will form as each of the known prototypes.
|
protected BaseClassifier |
makeClassifier(PhaseDiagramStatistics statistics,
PrototypeDataset trainData)
Given the dataset of training examples, make a classifier to predict the probability that a prototype
will form at a certain composition.
|
java.lang.String |
printUsage()
Print out required format for options.
|
java.lang.Object |
runCommand(java.util.List<java.lang.Object> Command)
Process some command described by a list of Objects.
|
void |
setClassifierTempate(BaseClassifier ClfrTempate)
Define a template for the classifier used by this class
|
void |
setOptions(java.util.List<java.lang.Object> Options)
Set any options for this object.
|
about, crossvalidate, fillPrototypeEntry, getComponent, getPossibleStructures, getPossibleStructures, getTrainingSet, importKnownCompounds, makeSiteInfo, predictStructure, predictStructure, printCommand, printDescription, removeKnownCompoundsContainingElements, setKnownCompoundspublic void setOptions(java.util.List<java.lang.Object> Options)
throws java.lang.Exception
OptionsOptions - Array of options as Objects - can be nulljava.lang.Exception - if problem with inputspublic java.lang.String printUsage()
Optionspublic void setClassifierTempate(BaseClassifier ClfrTempate)
ClfrTempate - protected BaseClassifier makeClassifier(PhaseDiagramStatistics statistics, PrototypeDataset trainData)
CSPEnginemakeClassifier in class CSPEnginestatistics - Statistics about all known phase diagrams (could be used predictively)trainData - Training data, where each entry mapsprotected double[] getProbabilities(BaseClassifier classifier, java.util.List<java.lang.String> knownPrototypes, PrototypeSiteInformation siteInfo, PrototypeEntry entryToPredict)
CSPEnginegetProbabilities in class CSPEngineclassifier - Model trained to predict which prototype will form, given composition.knownPrototypes - List of known prototypessiteInfo - Information about the prototypesentryToPredict - Entry to predictpublic java.lang.Object runCommand(java.util.List<java.lang.Object> Command)
throws java.lang.Exception
CommandablerunCommand in interface CommandablerunCommand in class CSPEngineCommand - Command as a list of objectsjava.lang.Exception - If something goes wrong