java.io.Serializable
, InstanceTransformer
, MOAObject
InstanceAttributesSelector
public class InstanceOutputAttributesSelector extends AbstractMOAObject implements InstanceTransformer
Modifier and Type | Field | Description |
---|---|---|
int |
numSourceInstancesOutputs |
|
InstancesHeader |
targetInstances |
|
int[] |
targetOutputIndices |
Constructor | Description |
---|---|
InstanceOutputAttributesSelector() |
|
InstanceOutputAttributesSelector(InstancesHeader sourceInstances,
int[] targetOutputIndices) |
Modifier and Type | Method | Description |
---|---|---|
void |
getDescription(java.lang.StringBuilder sb,
int indent) |
Returns a string representation of this object.
|
Instance |
sourceInstanceToTarget(Instance sourceInstance) |
|
Prediction |
targetPredictionToSource(Prediction targetPrediction) |
copy, copy, measureByteSize, measureByteSize, toString
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(java.lang.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.