|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectace.datatypes.TrainedModel
public class TrainedModel
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.
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 |
---|
public weka.classifiers.Classifier classifier
public weka.attributeSelection.AttributeSelection attribute_selector
public weka.core.Attribute class_attribute
Constructor Detail |
---|
public TrainedModel()
public TrainedModel(weka.classifiers.Classifier classifier, weka.attributeSelection.AttributeSelection attribute_selector, weka.core.Attribute class_attribute)
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |