de.fu_berlin.ties.classify
Interface Classifier

All Known Implementing Classes:
ExternalClassifier, MetaClassifier, MoonClassifier, MultiBinaryClassifier, OneAgainstTheRestClassifier, TieClassifier, TrainableClassifier, UltraconservativeWinnow, Winnow

public interface Classifier

Classes implementing this interface must be able to classify items represented by feature vectors.

Version:
$Revision: 1.12 $, $Date: 2006/10/21 16:03:54 $, $Author: siefkes $
Author:
Christian Siefkes

Field Summary
static String CONFIG_CLASSIFIER
          Base configuration key for classifiers.
 
Method Summary
 PredictionDistribution classify(FeatureVector features, Set candidateClasses)
          Classifies an item that is represented by a feature vector by choosing the most probable class among a set of candidate classes.
 void destroy()
          Destroys the classifer.
 

Field Detail

CONFIG_CLASSIFIER

static final String CONFIG_CLASSIFIER
Base configuration key for classifiers.

See Also:
Constant Field Values
Method Detail

classify

PredictionDistribution classify(FeatureVector features,
                                Set candidateClasses)
                                throws ProcessingException
Classifies an item that is represented by a feature vector by choosing the most probable class among a set of candidate classes.

Parameters:
features - the feature vector to consider
candidateClasses - an set of classes that are allowed for this item
Returns:
the result of the classification; you can call PredictionDistribution.best() to get the most probably class
Throws:
ProcessingException - if an error occurs during classification

destroy

void destroy()
             throws ProcessingException
Destroys the classifer. This method must be called only if the classifier will never be used again.

Throws:
ProcessingException - if an error occurs while the classifier is being destroyed


Copyright © 2003-2007 Christian Siefkes. All Rights Reserved.