public final class NoSplit extends ClassifierSplitModel
Constructor and Description |
---|
NoSplit(Distribution distribution)
Creates "no-split"-split for given distribution.
|
Modifier and Type | Method and Description |
---|---|
void |
buildClassifier(Instances instances)
Creates a "no-split"-split for a given set of instances.
|
java.lang.String |
getRevision()
Returns the revision string.
|
java.lang.String |
leftSide(Instances instances)
Does nothing because no condition has to be satisfied.
|
java.lang.String |
rightSide(int index,
Instances instances)
Does nothing because no condition has to be satisfied.
|
java.lang.String |
sourceExpression(int index,
Instances data)
Returns a string containing java source code equivalent to the test
made at this node.
|
double[] |
weights(Instance instance)
Always returns null because there is only one subset.
|
int |
whichSubset(Instance instance)
Always returns 0 because only there is only one subset.
|
checkModel, classifyInstance, classProb, classProbLaplace, clone, codingCost, distribution, dumpLabel, dumpModel, numSubsets, resetDistribution, setDistribution, sourceClass, split
public NoSplit(Distribution distribution)
public final void buildClassifier(Instances instances) throws java.lang.Exception
buildClassifier
in class ClassifierSplitModel
java.lang.Exception
- if split can't be built successfullypublic final int whichSubset(Instance instance)
whichSubset
in class ClassifierSplitModel
public final double[] weights(Instance instance)
weights
in class ClassifierSplitModel
public final java.lang.String leftSide(Instances instances)
leftSide
in class ClassifierSplitModel
instances
- the data.public final java.lang.String rightSide(int index, Instances instances)
rightSide
in class ClassifierSplitModel
public final java.lang.String sourceExpression(int index, Instances data)
sourceExpression
in class ClassifierSplitModel
index
- index of the nominal value testeddata
- the data containing instance structure infopublic java.lang.String getRevision()