public class MultiLabelBSTreeFloat extends AbstractOptionHandler implements NumericStatisticsObserver
Modifier and Type | Class and Description |
---|---|
protected class |
MultiLabelBSTreeFloat.Node |
Modifier and Type | Field and Description |
---|---|
protected DoubleVector[] |
leftStatistics |
protected int |
maxNodes |
IntOption |
maxNodesOption |
protected int |
numNodes |
protected DoubleVector[] |
rightStatistics |
protected MultiLabelBSTreeFloat.Node |
root |
config
Constructor and Description |
---|
MultiLabelBSTreeFloat() |
Modifier and Type | Method and Description |
---|---|
AttributeExpansionSuggestion |
getBestEvaluatedSplitSuggestion(MultiLabelSplitCriterion criterion,
DoubleVector[] preSplitStatistics,
int inputAttributeIndex)
Gets the best split suggestion given a criterion and a class distribution
|
void |
getDescription(StringBuilder sb,
int indent)
Returns a string representation of this object.
|
String |
getPurposeString()
Dictionary with option texts and objects
|
void |
observeAttribute(double inputAttributeValue,
DoubleVector[] statistics)
Updates statistics of this observer given an attribute value, the index of the statistic
and the weight of the instance observed
|
protected void |
prepareForUseImpl(TaskMonitor monitor,
ObjectRepository repository)
This method describes the implementation of how to prepare this object for use.
|
protected AttributeExpansionSuggestion |
searchForBestSplitOption(MultiLabelBSTreeFloat.Node currentNode,
AttributeExpansionSuggestion currentBestOption,
MultiLabelSplitCriterion criterion,
DoubleVector[] preSplitStatistics,
int inputAttributeIndex) |
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 IntOption maxNodesOption
protected int maxNodes
protected int numNodes
protected MultiLabelBSTreeFloat.Node root
protected DoubleVector[] leftStatistics
protected DoubleVector[] rightStatistics
public void observeAttribute(double inputAttributeValue, DoubleVector[] statistics)
AttributeStatisticsObserver
observeAttribute
in interface AttributeStatisticsObserver
inputAttributeValue
- the value for the attribute attributestatistics
- numOutputs x numStatistics the index of the statistic to storepublic AttributeExpansionSuggestion getBestEvaluatedSplitSuggestion(MultiLabelSplitCriterion criterion, DoubleVector[] preSplitStatistics, int inputAttributeIndex)
AttributeStatisticsObserver
getBestEvaluatedSplitSuggestion
in interface AttributeStatisticsObserver
criterion
- the split criterion to useprotected AttributeExpansionSuggestion searchForBestSplitOption(MultiLabelBSTreeFloat.Node currentNode, AttributeExpansionSuggestion currentBestOption, MultiLabelSplitCriterion criterion, DoubleVector[] preSplitStatistics, int inputAttributeIndex)
public String getPurposeString()
AbstractOptionHandler
getPurposeString
in interface OptionHandler
getPurposeString
in class AbstractOptionHandler
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.