|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lens.ml.MLModel<Double>
org.apache.lens.ml.ClassifierBaseModel
org.apache.lens.ml.spark.models.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.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 model| Method 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 | |||||||||