org.android.activityminer.pmml.model.knn
Class TrainingInstances

Package class diagram package TrainingInstances
java.lang.Object
  extended by org.android.activityminer.pmml.model.knn.TrainingInstances

public class TrainingInstances
extends Object

The training instances representation (without extensions)


Field Summary
private  TrainingData data
          the data representation (either an InstanceFields or a TableLocator instance)
private  Integer fieldCount
          Defines the number of fields (features + targets).
private  InstanceFields instanceFields
          The instance fields
private  boolean isTransformed
          Used as a flag to determine whether or not the training instances have already been transformed.
private  Integer recordCount
          Defines the number of training instances or records.
 
Constructor Summary
TrainingInstances()
           
 
Method Summary
 TrainingData getData()
          Getter for the data
 Integer getFieldCount()
          Getter for the fieldCount
 InstanceFields getInstanceFields()
          Getter for the instanceFields
 Integer getRecordCount()
          Getter for the recordCount
 boolean isTransformed()
          Getter for the isTransformed
 void setData(TrainingData data)
          Setter for the data
 void setFieldCount(Integer fieldCount)
          Setter for the fieldCount
 void setInstanceFields(InstanceFields instanceFields)
          Setter for the instanceFields
 void setRecordCount(Integer recordCount)
          Setter for the recordCount
 void setTransformed(boolean isTransformed)
          Setter for the isTransformed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isTransformed

private boolean isTransformed
Used as a flag to determine whether or not the training instances have already been transformed. If isTransformed is "false", it indicates that the training data has not been transformed yet. If "true", it indicates that it has already been transformed.


recordCount

private Integer recordCount
Defines the number of training instances or records. This number needs to match the number of instances defined in the element InlineTable or in the external data if TableLocator is used.


fieldCount

private Integer fieldCount
Defines the number of fields (features + targets). This number needs to match the number of InstanceField elements defined under InstanceFields.


instanceFields

private InstanceFields instanceFields
The instance fields


data

private TrainingData data
the data representation (either an InstanceFields or a TableLocator instance)

Constructor Detail

TrainingInstances

public TrainingInstances()
Method Detail

setTransformed

public void setTransformed(boolean isTransformed)
Setter for the isTransformed

Parameters:
isTransformed - the isTransformed to set

isTransformed

public boolean isTransformed()
Getter for the isTransformed

Returns:
the isTransformed

setRecordCount

public void setRecordCount(Integer recordCount)
Setter for the recordCount

Parameters:
recordCount - the recordCount to set

getRecordCount

public Integer getRecordCount()
Getter for the recordCount

Returns:
the recordCount

setFieldCount

public void setFieldCount(Integer fieldCount)
Setter for the fieldCount

Parameters:
fieldCount - the fieldCount to set

getFieldCount

public Integer getFieldCount()
Getter for the fieldCount

Returns:
the fieldCount

setInstanceFields

public void setInstanceFields(InstanceFields instanceFields)
Setter for the instanceFields

Parameters:
instanceFields - the instanceFields to set

getInstanceFields

public InstanceFields getInstanceFields()
Getter for the instanceFields

Returns:
the instanceFields

setData

public void setData(TrainingData data)
Setter for the data

Parameters:
data - the data to set

getData

public TrainingData getData()
Getter for the data

Returns:
the data