|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lens.client.LensMLJerseyClient
public class LensMLJerseyClient
The Class LensMLJerseyClient.
| Field Summary | |
|---|---|
static String |
DEFAULT_ML_RESOURCE_PATH
The Constant DEFAULT_ML_RESOURCE_PATH. |
static String |
LENS_ML_RESOURCE_PATH
The Constant LENS_ML_RESOURCE_PATH. |
static org.apache.commons.logging.Log |
LOG
The Constant LOG. |
| Constructor Summary | |
|---|---|
LensMLJerseyClient(LensConnection connection,
LensSessionHandle sessionHandle)
Instantiates a new lens ml jersey client. |
|
LensMLJerseyClient(LensConnection connection,
String password)
Instantiates a new lens ml jersey client. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public LensMLJerseyClient(LensConnection connection,
String password)
connection - the connection
public LensMLJerseyClient(LensConnection connection,
LensSessionHandle sessionHandle)
connection - the connection| Method Detail |
|---|
public ModelMetadata getModelMetadata(String algorithm,
String modelID)
algorithm - the algorithmmodelID - the model id
public void deleteModel(String algorithm,
String modelID)
algorithm - the algorithmmodelID - the model idpublic List<String> getModelsForAlgorithm(String algorithm)
algorithm - the algorithm
public List<String> getAlgoNames()
public String trainModel(String algorithm,
javax.ws.rs.core.Form params)
algorithm - the algorithmparams - the params
public String testModel(String table,
String algorithm,
String modelID,
String outputTable)
table - the tablealgorithm - the algorithmmodelID - the model idoutputTable - the output table name
public List<String> getTestReportsOfAlgorithm(String algorithm)
algorithm - the algorithm
public TestReport getTestReport(String algorithm,
String reportID)
algorithm - the algorithmreportID - the report id
public String deleteTestReport(String algorithm,
String reportID)
algorithm - the algorithmreportID - the report id
public String predictSingle(String algorithm,
String modelID,
Map<String,String> features)
algorithm - the algorithmmodelID - the model idfeatures - the features
public List<String> getParamDescriptionOfAlgo(String algorithm)
algorithm - the algorithm
public org.apache.hadoop.conf.Configuration getConf()
public void close()
public LensSessionHandle getSessionHandle()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||