public class InstanceOutputAttributesSelector extends AbstractMOAObject implements InstanceTransformer
Modifier and Type | Field and Description |
---|---|
int |
numSourceInstancesOutputs |
InstancesHeader |
targetInstances |
int[] |
targetOutputIndices |
Constructor and Description |
---|
InstanceOutputAttributesSelector() |
InstanceOutputAttributesSelector(InstancesHeader sourceInstances,
int[] targetOutputIndices) |
Modifier and Type | Method and Description |
---|---|
void |
getDescription(StringBuilder sb,
int indent)
Returns a string representation of this object.
|
Instance |
sourceInstanceToTarget(Instance sourceInstance) |
Prediction |
targetPredictionToSource(Prediction targetPrediction) |
copy, copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy, measureByteSize
public InstancesHeader targetInstances
public int[] targetOutputIndices
public int numSourceInstancesOutputs
public InstanceOutputAttributesSelector()
public InstanceOutputAttributesSelector(InstancesHeader sourceInstances, int[] targetOutputIndices)
public Instance sourceInstanceToTarget(Instance sourceInstance)
sourceInstanceToTarget
in interface InstanceTransformer
public Prediction targetPredictionToSource(Prediction targetPrediction)
targetPredictionToSource
in interface InstanceTransformer
public void getDescription(StringBuilder sb, int indent)
MOAObject
AbstractMOAObject.toString
to give a string representation of the object.getDescription
in interface MOAObject
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indentCopyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.