org.apache.lens.ml.spark.algos
Class KMeansAlgo

java.lang.Object
  extended by org.apache.lens.ml.spark.algos.KMeansAlgo
All Implemented Interfaces:
MLAlgo

public class KMeansAlgo
extends Object
implements MLAlgo

The Class KMeansAlgo.


Constructor Summary
KMeansAlgo()
           
 
Method Summary
 void configure(LensConf configuration)
          Configure.
 LensConf getConf()
           
 String getDescription()
           
 String getName()
           
 MLModel train(LensConf conf, String db, String table, String modelId, String... params)
          Train.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KMeansAlgo

public KMeansAlgo()
Method Detail

getName

public String getName()
Specified by:
getName in interface MLAlgo

getDescription

public String getDescription()
Specified by:
getDescription in interface MLAlgo

configure

public void configure(LensConf configuration)
Description copied from interface: MLAlgo
Configure.

Specified by:
configure in interface MLAlgo
Parameters:
configuration - the configuration

getConf

public LensConf getConf()
Specified by:
getConf in interface MLAlgo

train

public MLModel train(LensConf conf,
                     String db,
                     String table,
                     String modelId,
                     String... params)
              throws LensException
Description copied from interface: MLAlgo
Train.

Specified by:
train in interface MLAlgo
Parameters:
conf - the conf
db - the db
table - the table
modelId - the model id
params - the params
Returns:
the ML model
Throws:
LensException - the lens exception


Copyright © 2014–2015 Apache Software Foundation. All rights reserved.