public class MultilabelInformationGain extends AbstractOptionHandler implements MultiLabelSplitCriterion
config
Constructor and Description |
---|
MultilabelInformationGain() |
Modifier and Type | Method and Description |
---|---|
double[] |
getBranchesSplitMerits(DoubleVector[][] postSplitDists) |
double[] |
getBranchSplitEntropyOutput(DoubleVector[] postSplitDists) |
void |
getDescription(StringBuilder sb,
int indent)
Returns a string representation of this object.
|
double |
getMeritOfSplit(DoubleVector[] preSplitDist,
DoubleVector[][] postSplitDists) |
protected double |
getMeritOfSplitForOutput(DoubleVector[] preSplitDist,
DoubleVector[][] postSplitDists,
int outputAttributeIndex) |
protected double |
getMeritOfSplitForOutput(DoubleVector preSplitDist,
DoubleVector[] postSplitDists) |
String |
getPurposeString()
Dictionary with option texts and objects
|
double |
getRangeOfMerit(DoubleVector[] preSplitDist) |
protected void |
prepareForUseImpl(TaskMonitor monitor,
ObjectRepository repository)
This method describes the implementation of how to prepare this object for use.
|
copy, getCLICreationString, getOptions, getPreparedClassOption, prepareClassOptions, prepareForUse, prepareForUse
copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy, getCLICreationString, getOptions, prepareForUse, prepareForUse
measureByteSize
public String getPurposeString()
AbstractOptionHandler
getPurposeString
in interface OptionHandler
getPurposeString
in class AbstractOptionHandler
public double getMeritOfSplit(DoubleVector[] preSplitDist, DoubleVector[][] postSplitDists)
getMeritOfSplit
in interface MultiLabelSplitCriterion
public double[] getBranchSplitEntropyOutput(DoubleVector[] postSplitDists)
public double[] getBranchesSplitMerits(DoubleVector[][] postSplitDists)
getBranchesSplitMerits
in interface MultiLabelSplitCriterion
protected double getMeritOfSplitForOutput(DoubleVector[] preSplitDist, DoubleVector[][] postSplitDists, int outputAttributeIndex)
protected double getMeritOfSplitForOutput(DoubleVector preSplitDist, DoubleVector[] postSplitDists)
public double getRangeOfMerit(DoubleVector[] preSplitDist)
getRangeOfMerit
in interface MultiLabelSplitCriterion
public void getDescription(StringBuilder sb, int indent)
MOAObject
AbstractMOAObject.toString
to give a string representation of the object.getDescription
in interface MOAObject
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indentprotected void prepareForUseImpl(TaskMonitor monitor, ObjectRepository repository)
AbstractOptionHandler
prepareForUseImpl
and not prepareForUse
since
prepareForUse
calls prepareForUseImpl
.prepareForUseImpl
in class AbstractOptionHandler
monitor
- the TaskMonitor to userepository
- the ObjectRepository to useCopyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.