public class LensMLJerseyClient extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static String | DEFAULT_ML_RESOURCE_PATHThe Constant DEFAULT_ML_RESOURCE_PATH. | 
| static String | LENS_ML_RESOURCE_PATHThe Constant LENS_ML_RESOURCE_PATH. | 
| static org.apache.commons.logging.Log | LOGThe Constant LOG. | 
| Constructor and Description | 
|---|
| LensMLJerseyClient(LensConnection connection,
                  LensSessionHandle sessionHandle)Instantiates a new lens ml jersey client. | 
| LensMLJerseyClient(LensConnection connection,
                  String password)Instantiates a new lens ml jersey client. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close() | 
| void | deleteModel(String algorithm,
           String modelID)Delete model. | 
| String | deleteTestReport(String algorithm,
                String reportID)Delete test report. | 
| List<String> | getAlgoNames() | 
| org.apache.hadoop.conf.Configuration | getConf() | 
| ModelMetadata | getModelMetadata(String algorithm,
                String modelID)Gets the model metadata. | 
| List<String> | getModelsForAlgorithm(String algorithm)Gets the models for algorithm. | 
| List<String> | getParamDescriptionOfAlgo(String algorithm)Gets the param description of algo. | 
| LensSessionHandle | getSessionHandle() | 
| TestReport | getTestReport(String algorithm,
             String reportID)Gets the test report. | 
| List<String> | getTestReportsOfAlgorithm(String algorithm)Gets the test reports of algorithm. | 
| String | predictSingle(String algorithm,
             String modelID,
             Map<String,String> features)Predict single. | 
| String | testModel(String table,
         String algorithm,
         String modelID,
         String outputTable)Test model. | 
| String | trainModel(String algorithm,
          javax.ws.rs.core.Form params)Train model. | 
public static final String LENS_ML_RESOURCE_PATH
public static final String DEFAULT_ML_RESOURCE_PATH
public static final org.apache.commons.logging.Log LOG
public LensMLJerseyClient(LensConnection connection, String password)
connection - the connectionpublic LensMLJerseyClient(LensConnection connection, LensSessionHandle sessionHandle)
connection - the connectionpublic ModelMetadata getModelMetadata(String algorithm, String modelID)
algorithm - the algorithmmodelID - the model idpublic void deleteModel(String algorithm, String modelID)
algorithm - the algorithmmodelID - the model idpublic List<String> getModelsForAlgorithm(String algorithm)
algorithm - the algorithmpublic String trainModel(String algorithm, javax.ws.rs.core.Form params)
algorithm - the algorithmparams - the paramspublic String testModel(String table, String algorithm, String modelID, String outputTable)
table - the tablealgorithm - the algorithmmodelID - the model idoutputTable - the output table namepublic List<String> getTestReportsOfAlgorithm(String algorithm)
algorithm - the algorithmpublic TestReport getTestReport(String algorithm, String reportID)
algorithm - the algorithmreportID - the report idpublic String deleteTestReport(String algorithm, String reportID)
algorithm - the algorithmreportID - the report idpublic String predictSingle(String algorithm, String modelID, Map<String,String> features)
algorithm - the algorithmmodelID - the model idfeatures - the featurespublic List<String> getParamDescriptionOfAlgo(String algorithm)
algorithm - the algorithmpublic org.apache.hadoop.conf.Configuration getConf()
public void close()
public LensSessionHandle getSessionHandle()
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.