|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LensML
Lens's machine learning interface used by client code as well as Lens ML service.
Field Summary | |
---|---|
static String |
NAME
The Constant NAME. |
Method Summary | |
---|---|
void |
deleteModel(String algorithm,
String modelID)
Permanently delete a model instance. |
void |
deleteTestReport(String algorithm,
String reportID)
Permanently delete a test report instance. |
MLAlgo |
getAlgoForName(String algorithm)
Get a algo object instance which could be used to generate a model of the given algorithm. |
Map<String,String> |
getAlgoParamDescription(String algorithm)
Get user friendly information about parameters accepted by the algorithm. |
List<String> |
getAlgorithms()
Get list of available machine learning algorithms |
MLModel |
getModel(String algorithm,
String modelId)
Get a model instance given the algorithm name and model ID. |
String |
getModelPath(String algorithm,
String modelID)
Get the FS location where model instance is saved. |
List<String> |
getModels(String algorithm)
Get model IDs for the given algorithm. |
MLTestReport |
getTestReport(String algorithm,
String reportID)
Get a test report by ID. |
List<String> |
getTestReports(String algorithm)
Get test reports for an algorithm. |
Object |
predict(String algorithm,
String modelID,
Object[] features)
Online predict call given a model ID, algorithm name and sample feature values. |
MLTestReport |
testModel(LensSessionHandle session,
String table,
String algorithm,
String modelID,
String outputTable)
Evaluate model by running it against test data contained in the given table. |
String |
train(String table,
String algorithm,
String[] args)
Create a model using the given HCatalog table as input. |
Field Detail |
---|
static final String NAME
Method Detail |
---|
List<String> getAlgorithms()
Map<String,String> getAlgoParamDescription(String algorithm)
algorithm
- the algorithm
MLAlgo getAlgoForName(String algorithm) throws LensException
algorithm
- the algorithm
LensException
- the lens exceptionString train(String table, String algorithm, String[] args) throws LensException
table
- the tablealgorithm
- the algorithmargs
- the args
LensException
- the lens exceptionList<String> getModels(String algorithm) throws LensException
algorithm
- the algorithm
LensException
- the lens exceptionMLModel getModel(String algorithm, String modelId) throws LensException
algorithm
- the algorithmmodelId
- the model id
LensException
- the lens exceptionString getModelPath(String algorithm, String modelID)
algorithm
- the algorithmmodelID
- the model id
MLTestReport testModel(LensSessionHandle session, String table, String algorithm, String modelID, String outputTable) throws LensException
session
- the sessiontable
- the tablealgorithm
- the algorithmmodelID
- the model id
LensException
- the lens exceptionList<String> getTestReports(String algorithm) throws LensException
algorithm
- the algorithm
LensException
- the lens exceptionMLTestReport getTestReport(String algorithm, String reportID) throws LensException
algorithm
- the algorithmreportID
- the report id
LensException
- the lens exceptionObject predict(String algorithm, String modelID, Object[] features) throws LensException
algorithm
- the algorithmmodelID
- the model idfeatures
- the features
LensException
- the lens exceptionvoid deleteModel(String algorithm, String modelID) throws LensException
algorithm
- the algorithmmodelID
- the model id
LensException
- the lens exceptionvoid deleteTestReport(String algorithm, String reportID) throws LensException
algorithm
- the algorithmreportID
- the report id
LensException
- the lens exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |