ace.datatypes
Class TrainedModel

java.lang.Object
  extended by ace.datatypes.TrainedModel
All Implemented Interfaces:
java.io.Serializable

public class TrainedModel
extends java.lang.Object
implements java.io.Serializable

Serializable object that stores the Weka Objects associated with a Classification. The Trainer class will train the Weka Classifier, set the fields of this class, and save it to a file. The InstanceClassifier class will read this object from a file and access its fields to be used for classification. This object will also be used in the context of cross validation and experimentation. This class has no methods; it is only used for storing and saving the objects needed for classification.

See Also:
Serialized Form

Field Summary
 weka.attributeSelection.AttributeSelection attribute_selector
          A feature selector to be used to select features of a feature set.
 weka.core.Attribute class_attribute
          Attribute describing the possible classes to which an Instance may belong.
 weka.classifiers.Classifier classifier
          A Weka Classifier to be trained based on the training Instances.
 
Constructor Summary
TrainedModel()
          Constructs an instance of a TrainedModel object.
TrainedModel(weka.classifiers.Classifier classifier, weka.attributeSelection.AttributeSelection attribute_selector, weka.core.Attribute class_attribute)
          Constructs an instance of a TrainedModel object.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classifier

public weka.classifiers.Classifier classifier
A Weka Classifier to be trained based on the training Instances.


attribute_selector

public weka.attributeSelection.AttributeSelection attribute_selector
A feature selector to be used to select features of a feature set.


class_attribute

public weka.core.Attribute class_attribute
Attribute describing the possible classes to which an Instance may belong.

Constructor Detail

TrainedModel

public TrainedModel()
Constructs an instance of a TrainedModel object. Fields are set to null.


TrainedModel

public TrainedModel(weka.classifiers.Classifier classifier,
                    weka.attributeSelection.AttributeSelection attribute_selector,
                    weka.core.Attribute class_attribute)
Constructs an instance of a TrainedModel object. Fields are set to values of parameters.

Parameters:
classifier - The Weka Classifier to be trained, saved, and used for classification.
attribute_selector - The Weka object used for dimensionality reduction.
class_attribute - The Weka object specifying the possible classes into which a specific Instance may be classified.