org.apache.lens.ml.spark.models
Class KMeansClusteringModel

java.lang.Object
  extended by org.apache.lens.ml.MLModel<Integer>
      extended by 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.
 
Method Summary
 Integer predict(Object... args)
          Predict.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KMeansClusteringModel

public KMeansClusteringModel(String modelId,
                             org.apache.spark.mllib.clustering.KMeansModel model)
Instantiates a new k means clustering model.

Parameters:
modelId - the model id
model - the model
Method Detail

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.