Class WeightedICVarianceReduction
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.options.AbstractOptionHandler
-
- moa.classifiers.multilabel.core.splitcriteria.ICVarianceReduction
-
- moa.classifiers.multilabel.core.splitcriteria.WeightedICVarianceReduction
-
- All Implemented Interfaces:
Configurable
,Serializable
,MultiLabelSplitCriterion
,MOAObject
,OptionHandler
- Direct Known Subclasses:
PCTWeightedICVarianceReduction
public class WeightedICVarianceReduction extends ICVarianceReduction
Weighted intra cluster variance reduction split criterion- Author:
- Aljaž Osojnik
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description DoubleVector
weights
-
Fields inherited from class moa.options.AbstractOptionHandler
config
-
-
Constructor Summary
Constructors Constructor Description WeightedICVarianceReduction(DoubleVector targetWeights)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getDescription(StringBuilder sb, int indent)
Returns a string representation of this object.double
getMeritOfSplit(DoubleVector[] preSplitDist, DoubleVector[][] postSplitDists)
protected void
prepareForUseImpl(TaskMonitor monitor, ObjectRepository repository)
This method describes the implementation of how to prepare this object for use.-
Methods inherited from class moa.classifiers.multilabel.core.splitcriteria.ICVarianceReduction
computeVariance, computeVariance, getBranchesSplitMerits, getBranchSplitVarianceOutput, getMeritOfSplitForOutput, getMeritOfSplitForOutput, getRangeOfMerit
-
Methods inherited from class moa.options.AbstractOptionHandler
copy, getCLICreationString, getOptions, getPreparedClassOption, getPurposeString, prepareClassOptions, prepareForUse, prepareForUse
-
Methods inherited from class moa.AbstractMOAObject
copy, measureByteSize, measureByteSize, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface moa.MOAObject
measureByteSize
-
Methods inherited from interface moa.options.OptionHandler
copy, getCLICreationString, getOptions, getPurposeString, prepareForUse, prepareForUse
-
-
-
-
Field Detail
-
weights
public DoubleVector weights
-
-
Constructor Detail
-
WeightedICVarianceReduction
public WeightedICVarianceReduction(DoubleVector targetWeights)
-
-
Method Detail
-
getMeritOfSplit
public double getMeritOfSplit(DoubleVector[] preSplitDist, DoubleVector[][] postSplitDists)
- Specified by:
getMeritOfSplit
in interfaceMultiLabelSplitCriterion
- Overrides:
getMeritOfSplit
in classICVarianceReduction
-
getDescription
public void getDescription(StringBuilder sb, int indent)
Description copied from interface:MOAObject
Returns a string representation of this object. Used inAbstractMOAObject.toString
to give a string representation of the object.- Specified by:
getDescription
in interfaceMOAObject
- Overrides:
getDescription
in classICVarianceReduction
- Parameters:
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indent
-
prepareForUseImpl
protected void prepareForUseImpl(TaskMonitor monitor, ObjectRepository repository)
Description copied from class:AbstractOptionHandler
This method describes the implementation of how to prepare this object for use. All classes that extends this class have to implementprepareForUseImpl
and notprepareForUse
sinceprepareForUse
callsprepareForUseImpl
.- Overrides:
prepareForUseImpl
in classICVarianceReduction
- Parameters:
monitor
- the TaskMonitor to userepository
- the ObjectRepository to use
-
-