public class SingleOutcomeClassifier<OUTCOME_TYPE> extends Object implements Classifier<OUTCOME_TYPE>, ReflectionUtil.TypeArgumentDelegator
| Constructor and Description |
|---|
SingleOutcomeClassifier(OUTCOME_TYPE value) |
| Modifier and Type | Method and Description |
|---|---|
OUTCOME_TYPE |
classify(List<Feature> features)
Classifies a list of features.
|
Map<String,Type> |
getTypeArguments(Class<?> genericType) |
Map<OUTCOME_TYPE,Double> |
score(List<Feature> features)
Classify a list of features, and return the scores for each of the outcomes
|
public SingleOutcomeClassifier(OUTCOME_TYPE value)
public OUTCOME_TYPE classify(List<Feature> features) throws CleartkProcessingException
Classifierclassify in interface Classifier<OUTCOME_TYPE>features - a list of features to be classifiedCleartkProcessingExceptionpublic Map<String,Type> getTypeArguments(Class<?> genericType)
getTypeArguments in interface ReflectionUtil.TypeArgumentDelegatorpublic Map<OUTCOME_TYPE,Double> score(List<Feature> features)
Classifierscore in interface Classifier<OUTCOME_TYPE>features - a list of features to be classifiedCopyright © 2014. All rights reserved.