diva.sketch.classification
Interface TrainableClassifier

All Superinterfaces:
Classifier
All Known Implementing Classes:
AbstractClassifier, BayesClassifier, KNNClassifier, RubineClassifier, WeightedEuclideanClassifier

public interface TrainableClassifier
extends 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 in the same places.

Version:
$Revision: 1.4 $
Author:
Michael Shilman (michaels@eecs.berkeley.edu)

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)
          Train the classifier with a given training set.
 
Methods inherited from interface diva.sketch.classification.Classifier
classify
 

Method Detail

train

void train(TrainingSet s)
           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

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


clear

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



Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.