public class GenericLibLinearClassifier<OUTCOME_TYPE> extends Classifier_ImplBase<de.bwaldvogel.liblinear.FeatureNode[],OUTCOME_TYPE,Integer>
featuresEncoder, outcomeEncoder| Constructor and Description |
|---|
GenericLibLinearClassifier(FeaturesEncoder<de.bwaldvogel.liblinear.FeatureNode[]> featuresEncoder,
OutcomeEncoder<OUTCOME_TYPE,Integer> outcomeEncoder,
de.bwaldvogel.liblinear.Model model) |
| Modifier and Type | Method and Description |
|---|---|
OUTCOME_TYPE |
classify(List<Feature> features)
Classifies a list of features.
|
Map<OUTCOME_TYPE,Double> |
score(List<Feature> features)
Classify a list of features, and return the scores for each of the outcomes
|
public GenericLibLinearClassifier(FeaturesEncoder<de.bwaldvogel.liblinear.FeatureNode[]> featuresEncoder, OutcomeEncoder<OUTCOME_TYPE,Integer> outcomeEncoder, de.bwaldvogel.liblinear.Model model)
public OUTCOME_TYPE classify(List<Feature> features) throws CleartkProcessingException
Classifierfeatures - a list of features to be classifiedCleartkProcessingExceptionpublic Map<OUTCOME_TYPE,Double> score(List<Feature> features) throws CleartkProcessingException
Classifierscore in interface Classifier<OUTCOME_TYPE>score in class Classifier_ImplBase<de.bwaldvogel.liblinear.FeatureNode[],OUTCOME_TYPE,Integer>features - a list of features to be classifiedCleartkProcessingExceptionCopyright © 2014. All rights reserved.