public class NonZeroClassificationSplitter extends BaseDatasetSplitter
Usage: <threshold> $<model>
| Modifier and Type | Field and Description |
|---|---|
protected BaseModel |
Clfr
Model to use for splitting
|
protected double |
ProbabilityThreshold
Probability of being of class #0 below which entry gets placed in entry #1
|
| Constructor and Description |
|---|
NonZeroClassificationSplitter()
Create a new instances that uses ZeroR to classify.
|
| Modifier and Type | Method and Description |
|---|---|
NonZeroClassificationSplitter |
clone() |
java.util.List<java.lang.String> |
getSplitNames()
Get the names of the splits this splitter creates
|
protected java.util.List<java.lang.String> |
getSplitterDetails(boolean htmlFormat)
Get details of splitter.
|
int[] |
label(Dataset D)
Given a dataset, determine which subset each entry should belong to.
|
java.lang.String |
printUsage()
Print out required format for options.
|
void |
setModel(BaseModel model)
Define the model used to split data.
|
void |
setOptions(java.util.List Options)
Set any options for this object.
|
void |
setProbabilityThreshold(double ProbabilityThreshold)
Define the probability of being in class 0 on which to partition data.
|
void |
train(Dataset TrainingSet)
Train a classifier for determining which entries have a non-zero class
|
about, printCommand, printDescription, runCommand, split, splitprotected BaseModel Clfr
protected double ProbabilityThreshold
public NonZeroClassificationSplitter()
throws java.lang.Exception
java.lang.Exceptionpublic NonZeroClassificationSplitter clone()
clone in class BaseDatasetSplitterpublic void setOptions(java.util.List 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 setProbabilityThreshold(double ProbabilityThreshold)
ProbabilityThreshold - Desired thresholdpublic void setModel(BaseModel model) throws java.lang.Exception
model - Desired model (will be cloned)java.lang.Exceptionpublic int[] label(Dataset D)
BaseDatasetSplitterlabel in class BaseDatasetSplitterD - Dataset to be labeledpublic void train(Dataset TrainingSet)
train in class BaseDatasetSplitterTrainingSet - protected java.util.List<java.lang.String> getSplitterDetails(boolean htmlFormat)
BaseDatasetSplittergetSplitterDetails in class BaseDatasetSplitterhtmlFormat - Whether to format results with HTMLpublic java.util.List<java.lang.String> getSplitNames()
BaseDatasetSplittergetSplitNames in class BaseDatasetSplitter