|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Classifier
Classes implementing this interface must be able to classify items represented by feature vectors.
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 |
---|
static final String CONFIG_CLASSIFIER
Method Detail |
---|
PredictionDistribution classify(FeatureVector features, Set candidateClasses) throws ProcessingException
features
- the feature vector to considercandidateClasses
- an set of classes that are allowed for this item
PredictionDistribution.best()
to get the most probably class
ProcessingException
- if an error occurs during classificationvoid destroy() throws ProcessingException
ProcessingException
- if an error occurs while the classifier is
being destroyed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |