public class StabilityFilter extends BaseDatasetFilter
Labels entries with stability less than a threshold
Usage: $<hull data> <measured|predicted> <threshold>
Constructor and Description |
---|
StabilityFilter() |
Modifier and Type | Method and Description |
---|---|
boolean[] |
label(Dataset D)
Given a dataset, determine which entries passes the filter.
|
protected int |
parallelMinimum()
Minimum number of entries to label in parallel.
|
java.lang.String |
printUsage()
Print out required format for options.
|
void |
setCompounds(CompositionDataset data)
Define the data used to compute stability.
|
void |
setOptions(java.util.List<java.lang.Object> Options)
Set any options for this object.
|
void |
setThreshold(double threshold)
Set threshold at which compounds are declared "unstable".
|
void |
setUsePredicted(boolean x)
Set whether to use the measured or predicted class variable.
|
void |
train(Dataset TrainingSet)
Train a dataset splitter, if necessary
|
filter, parallelLabel, setExclude, toExclude
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 setCompounds(CompositionDataset data)
data
- Data containing the energies of all known phasespublic void setUsePredicted(boolean x)
x
- Desired settingpublic void setThreshold(double threshold)
threshold
- Desired threshold (default = 0)protected int parallelMinimum()
BaseDatasetFilter
parallelMinimum
in class BaseDatasetFilter
public void train(Dataset TrainingSet)
BaseDatasetFilter
train
in class BaseDatasetFilter
TrainingSet
- Dataset to use for trainingpublic boolean[] label(Dataset D)
BaseDatasetFilter
label
in class BaseDatasetFilter
D
- Dataset to be labeled