org.apache.lens.ml.spark.algos
Class KMeansAlgo
java.lang.Object
org.apache.lens.ml.spark.algos.KMeansAlgo
- All Implemented Interfaces:
- MLAlgo
public class KMeansAlgo
- extends Object
- implements MLAlgo
The Class KMeansAlgo.
KMeansAlgo
public KMeansAlgo()
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 confdb
- the dbtable
- the tablemodelId
- the model idparams
- the params
- Returns:
- the ML model
- Throws:
LensException
- the lens exception
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.