Class AttributeExpansionSuggestion
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.classifiers.rules.multilabel.core.AttributeExpansionSuggestion
-
- All Implemented Interfaces:
Serializable
,Comparable<AttributeExpansionSuggestion>
,MOAObject
public class AttributeExpansionSuggestion extends AbstractMOAObject implements Comparable<AttributeExpansionSuggestion>
Class for computing attribute split suggestions given a split test.- Version:
- $Revision: 1 $
- Author:
- João Duarte (joaomaiaduarte@gmail.com)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description double
merit
Predicate
predicate
DoubleVector[][]
resultingNodeStatistics
-
Constructor Summary
Constructors Constructor Description AttributeExpansionSuggestion(Predicate predicate, DoubleVector[][] resultingNodeStatistics, double merit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(AttributeExpansionSuggestion comp)
void
getDescription(StringBuilder sb, int indent)
Returns a string representation of this object.double
getMerit()
Predicate
getPredicate()
DoubleVector[][]
getResultingNodeStatistics()
void
setPredicate(Predicate predicate)
-
Methods inherited from class moa.AbstractMOAObject
copy, copy, measureByteSize, measureByteSize, toString
-
-
-
-
Field Detail
-
predicate
public Predicate predicate
-
resultingNodeStatistics
public DoubleVector[][] resultingNodeStatistics
-
merit
public double merit
-
-
Constructor Detail
-
AttributeExpansionSuggestion
public AttributeExpansionSuggestion(Predicate predicate, DoubleVector[][] resultingNodeStatistics, double merit)
-
-
Method Detail
-
getPredicate
public Predicate getPredicate()
-
setPredicate
public void setPredicate(Predicate predicate)
-
getResultingNodeStatistics
public DoubleVector[][] getResultingNodeStatistics()
-
getMerit
public double getMerit()
-
compareTo
public int compareTo(AttributeExpansionSuggestion comp)
- Specified by:
compareTo
in interfaceComparable<AttributeExpansionSuggestion>
-
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
- Parameters:
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indent
-
-