Package moa.core.utils
Class Converter
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.core.utils.Converter
-
- All Implemented Interfaces:
Serializable
,MOAObject
public class Converter extends AbstractMOAObject
Converter. This class can be used to convert a multi-label instance into a single-label instance.- Version:
- $Revision: 1 $
- Author:
- Jesse Read (jesse@tsc.uc3m.es)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Instances
m_InstancesTemplate
protected int
m_L
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Instances
createTemplate(Instances i)
Instance
formatInstance(Instance original)
void
getDescription(StringBuilder sb, int indent)
Returns a string representation of this object.int
getL()
List<Integer>
getRelevantLabels(Instance x)
-
Methods inherited from class moa.AbstractMOAObject
copy, copy, measureByteSize, measureByteSize, toString
-
-
-
-
Field Detail
-
m_InstancesTemplate
protected Instances m_InstancesTemplate
-
m_L
protected int m_L
-
-
Method Detail
-
getL
public int getL()
-
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.- Parameters:
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indent
-
-