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, split
protected BaseModel Clfr
protected double ProbabilityThreshold
public NonZeroClassificationSplitter() throws java.lang.Exception
java.lang.Exception
public NonZeroClassificationSplitter clone()
clone
in class BaseDatasetSplitter
public void setOptions(java.util.List 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 setProbabilityThreshold(double ProbabilityThreshold)
ProbabilityThreshold
- Desired thresholdpublic void setModel(BaseModel model) throws java.lang.Exception
model
- Desired model (will be cloned)java.lang.Exception
public int[] label(Dataset D)
BaseDatasetSplitter
label
in class BaseDatasetSplitter
D
- Dataset to be labeledpublic void train(Dataset TrainingSet)
train
in class BaseDatasetSplitter
TrainingSet
- protected java.util.List<java.lang.String> getSplitterDetails(boolean htmlFormat)
BaseDatasetSplitter
getSplitterDetails
in class BaseDatasetSplitter
htmlFormat
- Whether to format results with HTMLpublic java.util.List<java.lang.String> getSplitNames()
BaseDatasetSplitter
getSplitNames
in class BaseDatasetSplitter