org.apache.lens.ml
Interface MLAlgo

All Known Implementing Classes:
BaseSparkAlgo, DecisionTreeAlgo, KMeansAlgo, LogisticRegressionAlgo, NaiveBayesAlgo, SVMAlgo

public interface MLAlgo

The Interface MLAlgo.


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.
 

Method Detail

getName

String getName()

getDescription

String getDescription()

configure

void configure(LensConf configuration)
Configure.

Parameters:
configuration - the configuration

getConf

LensConf getConf()

train

MLModel train(LensConf conf,
              String db,
              String table,
              String modelId,
              String... params)
              throws LensException
Train.

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.