| Package | Description |
|---|---|
| org.wso2.carbon.ml.integration.common.utils |
| Modifier and Type | Method and Description |
|---|---|
boolean |
MLHttpClient.checkDatasetStatus(int versionSetId,
long timeout,
int frequency)
Check the status of a dataset.
|
org.apache.http.client.methods.CloseableHttpResponse |
MLHttpClient.createAnalysis(String AnalysisName,
int ProjectId)
Create an Analysis
|
protected int |
MLBaseTest.createAnalysis(String name,
int projectId)
Creates an analysis with given specification and keep a reference to the id.
|
org.apache.http.client.methods.CloseableHttpResponse |
MLHttpClient.createAnalysisCrossOrigin(String AnalysisName,
int ProjectId)
Create an Analysis with CORS
|
protected int |
MLBaseTest.createDataset(String name,
String version,
String dataset)
Creates a dataset with given specification and keep a reference to the id.
|
protected int |
MLBaseTest.createDatasetFromDASTable(String name,
String version,
String table)
Creates a dataset with given specification and keep a reference to the id.
|
org.apache.http.client.methods.CloseableHttpResponse |
MLHttpClient.createFileModelStorage(int modelId,
String folderName)
Create the file storage for a model
|
org.apache.http.client.methods.CloseableHttpResponse |
MLHttpClient.createModel(int analysisId,
int versionSetId)
Create a Model
|
protected String |
MLBaseTest.createModel(int analysisId,
int versionSetId)
Creates a model with given specification and keep a reference to the id.
|
org.apache.http.client.methods.CloseableHttpResponse |
MLHttpClient.createProject(String ProjectName,
String datasetName)
Create a project
|
protected int |
MLBaseTest.createProject(String name,
String datasetName)
Creates a project with given specification and keep a reference to the id.
|
protected void |
MLBaseTest.destroy() |
org.apache.http.client.methods.CloseableHttpResponse |
MLHttpClient.doHttpDelete(String resourcePath) |
org.apache.http.client.methods.CloseableHttpResponse |
MLHttpClient.doHttpGet(String resourcePath)
Send a HTTP GET request to the given URI and return the response.
|
org.apache.http.client.methods.CloseableHttpResponse |
MLHttpClient.doHttpPost(String resourcePath)
Send a HTTP POST request to the given URI with null parameters and return the response.
|
org.apache.http.client.methods.CloseableHttpResponse |
MLHttpClient.doHttpPost(String resourcePath,
String parametersJson)
Send a HTTP POST request to the given URI and return the response.
|
org.apache.http.client.methods.CloseableHttpResponse |
MLHttpClient.doHttpPostCrossOrigin(String resourcePath,
String parametersJson)
Send a cross origin HTTP POST request to the given URI and return the response.
|
org.apache.http.client.methods.CloseableHttpResponse |
MLHttpClient.exportAsPMML(int modelId)
Download an existing serialized model in PMML format
|
int |
MLHttpClient.getAnalysisId(int projectId,
String analysisName)
Get the ID of an analysis from the name
|
int |
MLHttpClient.getAVersionSetIdOfDataset(int datasetId)
Get a ID of the first version-set of a dataset
|
int |
MLHttpClient.getModelId(String modelName)
Get the model ID using the name of the model
|
protected int |
MLBaseTest.getModelId(String modelName) |
String |
MLHttpClient.getModelName(org.apache.http.client.methods.CloseableHttpResponse response)
Extract the model name from the response
|
int |
MLHttpClient.getProjectId(String projectName)
Get the ID of the project from the name
|
org.json.JSONObject |
MLHttpClient.getResponseAsJSONObject(org.apache.http.client.methods.CloseableHttpResponse response) |
String |
MLHttpClient.getResponseAsString(org.apache.http.client.methods.CloseableHttpResponse response) |
protected int |
MLBaseTest.getVersionSetId(int datasetId,
String version) |
int |
MLHttpClient.getVersionSetIdOfDataset(int datasetId,
String version)
Get the ID of the version set with the given version and of a given dataset
|
org.apache.http.client.methods.CloseableHttpResponse |
MLHttpClient.predictFromCSV(long modelId,
String resourcePath) |
org.apache.http.client.methods.CloseableHttpResponse |
MLHttpClient.setFeatureCustomized(int analysisId,
String customizedFeatures)
Set feature customized for an analysis.
|
org.apache.http.client.methods.CloseableHttpResponse |
MLHttpClient.setFeatureDefaults(int analysisId)
Set feature defaults for an analysis.
|
org.apache.http.client.methods.CloseableHttpResponse |
MLHttpClient.setModelConfiguration(int analysisId,
Map<String,String> configurations)
Set Model Configurations of an analysis
|
protected void |
MLBaseTest.testExportAsPMML(int modelId)
A test case for exporting a model in pmml format
|
protected void |
MLBaseTest.testPublishAsPMML(int modelId)
A test case for publishing a model to registry in pmml format
|
org.apache.http.client.methods.CloseableHttpResponse |
MLHttpClient.uploadDatasetFromCSV(String datasetName,
String version,
String resourcePath)
Upload a sample datatset from resources
|
org.apache.http.client.methods.CloseableHttpResponse |
MLHttpClient.uploadDatasetFromDAS(String datasetName,
String version,
String tableName)
Upload a sample datatset from resources
|
Copyright © 2016 WSO2, Inc.. All rights reserved.