Class InstanceOutputAttributesSelector
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.classifiers.rules.multilabel.instancetransformers.InstanceOutputAttributesSelector
-
- All Implemented Interfaces:
Serializable
,InstanceTransformer
,MOAObject
- Direct Known Subclasses:
InstanceAttributesSelector
public class InstanceOutputAttributesSelector extends AbstractMOAObject implements InstanceTransformer
Transforms instances considering only a subset of output attributes- Author:
- João Duarte (joaomaiaduarte@gmail.com)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description int
numSourceInstancesOutputs
InstancesHeader
targetInstances
int[]
targetOutputIndices
-
Constructor Summary
Constructors Constructor Description InstanceOutputAttributesSelector()
InstanceOutputAttributesSelector(InstancesHeader sourceInstances, int[] targetOutputIndices)
-
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.Instance
sourceInstanceToTarget(Instance sourceInstance)
Prediction
targetPredictionToSource(Prediction targetPrediction)
-
Methods inherited from class moa.AbstractMOAObject
copy, 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
copy, measureByteSize
-
-
-
-
Field Detail
-
targetInstances
public InstancesHeader targetInstances
-
targetOutputIndices
public int[] targetOutputIndices
-
numSourceInstancesOutputs
public int numSourceInstancesOutputs
-
-
Constructor Detail
-
InstanceOutputAttributesSelector
public InstanceOutputAttributesSelector()
-
InstanceOutputAttributesSelector
public InstanceOutputAttributesSelector(InstancesHeader sourceInstances, int[] targetOutputIndices)
-
-
Method Detail
-
sourceInstanceToTarget
public Instance sourceInstanceToTarget(Instance sourceInstance)
- Specified by:
sourceInstanceToTarget
in interfaceInstanceTransformer
-
targetPredictionToSource
public Prediction targetPredictionToSource(Prediction targetPrediction)
- Specified by:
targetPredictionToSource
in interfaceInstanceTransformer
-
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
-
-