org.apache.lens.ml
Class ClassifierBaseModel
java.lang.Object
org.apache.lens.ml.MLModel<Double>
org.apache.lens.ml.ClassifierBaseModel
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- BaseSparkClassificationModel
public abstract class ClassifierBaseModel
- extends MLModel<Double>
Return a single double value as a prediction. This is useful in classifiers where the classifier returns a single
class label as a prediction.
- See Also:
- Serialized Form
ClassifierBaseModel
public ClassifierBaseModel()
getFeatureVector
public final double[] getFeatureVector(Object[] args)
- Gets the feature vector.
- Parameters:
args
- the args
- Returns:
- the feature vector
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.