|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lens.ml.algo.api.MLModel<Double> org.apache.lens.ml.algo.lib.ClassifierBaseModel org.apache.lens.ml.algo.spark.BaseSparkClassificationModel<MODEL>
MODEL
- the generic typepublic class BaseSparkClassificationModel<MODEL extends org.apache.spark.mllib.classification.ClassificationModel>
The Class BaseSparkClassificationModel.
Constructor Summary | |
---|---|
BaseSparkClassificationModel(String modelId,
MODEL model)
Instantiates a new base spark classification model. |
Method Summary | |
---|---|
String |
getId()
|
Double |
predict(Object... args)
Predict. |
Methods inherited from class org.apache.lens.ml.algo.lib.ClassifierBaseModel |
---|
getFeatureVector |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseSparkClassificationModel(String modelId, MODEL model)
modelId
- the model idmodel
- the modelMethod Detail |
---|
public Double predict(Object... args)
MLModel
predict
in class MLModel<Double>
args
- the args
public String getId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |