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, setKnownCompounds
public void setOptions(java.util.List<java.lang.Object> Options) throws java.lang.Exception
Options
Options
- Array of options as Objects - can be null
java.lang.Exception
- if problem with inputspublic java.lang.String printUsage()
Options
public void setClassifierTempate(BaseClassifier ClfrTempate)
ClfrTempate
- protected BaseClassifier makeClassifier(PhaseDiagramStatistics statistics, PrototypeDataset trainData)
CSPEngine
makeClassifier
in class CSPEngine
statistics
- 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)
CSPEngine
getProbabilities
in class CSPEngine
classifier
- 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
Commandable
runCommand
in interface Commandable
runCommand
in class CSPEngine
Command
- Command as a list of objectsjava.lang.Exception
- If something goes wrong