This project has retired. For details please refer to its Attic page.
ClassifierBaseModel (Lens 2.0.1-beta-incubating API)

org.apache.lens.ml
Class ClassifierBaseModel

java.lang.Object
  extended by org.apache.lens.ml.MLModel<Double>
      extended by 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

Constructor Summary
ClassifierBaseModel()
           
 
Method Summary
 double[] getFeatureVector(Object[] args)
          Gets the feature vector.
 
Methods inherited from class org.apache.lens.ml.MLModel
predict
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassifierBaseModel

public ClassifierBaseModel()
Method Detail

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.