org.apache.lens.ml.spark.models
Class KMeansClusteringModel
java.lang.Object
org.apache.lens.ml.MLModel<Integer>
org.apache.lens.ml.spark.models.KMeansClusteringModel
- All Implemented Interfaces:
- Serializable
public class KMeansClusteringModel
- extends MLModel<Integer>
The Class KMeansClusteringModel.
- See Also:
- Serialized Form
Constructor Summary |
KMeansClusteringModel(String modelId,
org.apache.spark.mllib.clustering.KMeansModel model)
Instantiates a new k means clustering model. |
KMeansClusteringModel
public KMeansClusteringModel(String modelId,
org.apache.spark.mllib.clustering.KMeansModel model)
- Instantiates a new k means clustering model.
- Parameters:
modelId
- the model idmodel
- the model
predict
public Integer predict(Object... args)
- Description copied from class:
MLModel
- Predict.
- Specified by:
predict
in class MLModel<Integer>
- Parameters:
args
- the args
- Returns:
- the prediction
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.