hhreco.classification
Interface TrainableClassifier

All Superinterfaces:
Classifier
All Known Implementing Classes:
KNNClassifier, MMDClassifier, SVMClassifier

public interface TrainableClassifier
extends Classifier

This classifier trains on a data set and performs classification based on what it has seen. It assumes that the feature set it is given is consistent with the feature sets that it was trained on, i.e. the same features are at the same indices.


Method Summary
 void clear()
          Clear all results of previous trainings (presumably so that this classifier can be trained again from scratch).
 boolean isIncremental()
          Return whether this classifier is incremental, i.e.
 void train(TrainingSet s, int numFeatures)
          Train the classifier with a given training set.
 
Methods inherited from interface hhreco.classification.Classifier
classify
 

Method Detail

train

public void train(TrainingSet s,
                  int numFeatures)
           throws ClassifierException
Train the classifier with a given training set. This method will throw a ClassifierException if the training set is not self consisistent, i.e. the feature sets that it contains do not have the same number of features in them.

Throws:
ClassifierException

isIncremental

public boolean isIncremental()
Return whether this classifier is incremental, i.e. whether this classifier can support multiple calls to "train".


clear

public void clear()
Clear all results of previous trainings (presumably so that this classifier can be trained again from scratch).