Class InstanceAttributesSelector
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.classifiers.rules.multilabel.instancetransformers.InstanceOutputAttributesSelector
-
- moa.classifiers.rules.multilabel.instancetransformers.InstanceAttributesSelector
-
- All Implemented Interfaces:
Serializable
,InstanceTransformer
,MOAObject
public class InstanceAttributesSelector extends InstanceOutputAttributesSelector implements InstanceTransformer
Transforms instances considering both a subset of input attributes and 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
int[]
targetInputIndices
InstancesHeader
targetInstances
int[]
targetOutputIndices
-
Constructor Summary
Constructors Constructor Description InstanceAttributesSelector(InstancesHeader sourceInstances, int[] targetInputIndices, 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)
-
Methods inherited from class moa.classifiers.rules.multilabel.instancetransformers.InstanceOutputAttributesSelector
targetPredictionToSource
-
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.classifiers.rules.multilabel.instancetransformers.InstanceTransformer
targetPredictionToSource
-
Methods inherited from interface moa.MOAObject
copy, measureByteSize
-
-
-
-
Field Detail
-
targetInstances
public InstancesHeader targetInstances
-
targetInputIndices
public int[] targetInputIndices
-
targetOutputIndices
public int[] targetOutputIndices
-
numSourceInstancesOutputs
public int numSourceInstancesOutputs
-
-
Constructor Detail
-
InstanceAttributesSelector
public InstanceAttributesSelector(InstancesHeader sourceInstances, int[] targetInputIndices, int[] targetOutputIndices)
-
-
Method Detail
-
sourceInstanceToTarget
public Instance sourceInstanceToTarget(Instance sourceInstance)
- Specified by:
sourceInstanceToTarget
in interfaceInstanceTransformer
- Overrides:
sourceInstanceToTarget
in classInstanceOutputAttributesSelector
-
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 classInstanceOutputAttributesSelector
- Parameters:
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indent
-
-