hhreco.classification
Interface Classifier

All Known Subinterfaces:
TrainableClassifier
All Known Implementing Classes:
KNNClassifier, MMDClassifier, SVMClassifier

public interface Classifier

A Classifier performs generic classification on feature sets, the semantics of which it knows nothing about. 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
 Classification classify(FeatureSet s)
          Return a classification for the specified feature set, or throw a runtime exception if the given feature set does not have the same number of features as the training examples.
 

Method Detail

classify

public Classification classify(FeatureSet s)
                        throws ClassifierException
Return a classification for the specified feature set, or throw a runtime exception if the given feature set does not have the same number of features as the training examples.

Throws:
ClassifierException