public class MLDatasetProcessor extends Object
MLInputAdapter
, extracting meta-data, persist in ML
db and store the data stream in a user defined target path.Constructor and Description |
---|
MLDatasetProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
deleteDataset(int tenantId,
String userName,
long datasetId) |
void |
deleteDatasetVersion(int tenantId,
String userName,
long versionsetId) |
List<org.wso2.carbon.ml.commons.domain.MLDataset> |
getAllDatasets(int tenantId,
String userName) |
List<org.wso2.carbon.ml.commons.domain.MLDatasetVersion> |
getAllDatasetVersions(int tenantId,
String userName,
long datasetId) |
List<org.wso2.carbon.ml.commons.domain.MLDatasetVersion> |
getAllVersionsetsOfDataset(int tenantId,
String userName,
long datasetId) |
List<Object> |
getChartSamplePoints(int tenantId,
String user,
long versionsetId,
String featureListString) |
List<Object> |
getChartSamplePointsOfLatestVersion(int tenantId,
String user,
long datasetId,
String featureListString) |
org.wso2.carbon.ml.commons.domain.MLDataset |
getDataset(int tenantId,
String userName,
long datasetId) |
List<String> |
getFeatureNames(long datasetId,
String featureType) |
org.wso2.carbon.ml.commons.domain.SamplePoints |
getSamplePoints(int tenantId,
String userName,
long versionsetId) |
List<Object> |
getScatterPlotPoints(org.wso2.carbon.ml.commons.domain.ScatterPlotPoints scatterPlotPoints) |
List<Object> |
getScatterPlotPointsOfLatestVersion(long datasetId,
org.wso2.carbon.ml.commons.domain.ScatterPlotPoints scatterPlotPoints) |
String |
getSummaryStats(long datasetId,
String featureName) |
org.wso2.carbon.ml.commons.domain.MLDatasetVersion |
getVersionset(int tenantId,
String userName,
long versionsetId) |
org.wso2.carbon.ml.commons.domain.MLDatasetVersion |
getVersionSetWithVersion(int tenantId,
String userName,
long datasetId,
String version) |
void |
process(org.wso2.carbon.ml.commons.domain.MLDataset dataset,
InputStream inputStream)
Process a given data-set; read the data-set as a stream, extract meta-data, persist the data-set in a target path
and persist meta-data in ML db.
|
public List<org.wso2.carbon.ml.commons.domain.MLDatasetVersion> getAllDatasetVersions(int tenantId, String userName, long datasetId) throws MLDataProcessingException
MLDataProcessingException
public org.wso2.carbon.ml.commons.domain.MLDatasetVersion getVersionset(int tenantId, String userName, long versionsetId) throws MLDataProcessingException
MLDataProcessingException
public org.wso2.carbon.ml.commons.domain.SamplePoints getSamplePoints(int tenantId, String userName, long versionsetId) throws MLDataProcessingException
MLDataProcessingException
public org.wso2.carbon.ml.commons.domain.MLDatasetVersion getVersionSetWithVersion(int tenantId, String userName, long datasetId, String version) throws MLDataProcessingException
MLDataProcessingException
public List<org.wso2.carbon.ml.commons.domain.MLDataset> getAllDatasets(int tenantId, String userName) throws MLDataProcessingException
MLDataProcessingException
public org.wso2.carbon.ml.commons.domain.MLDataset getDataset(int tenantId, String userName, long datasetId) throws MLDataProcessingException
MLDataProcessingException
public List<org.wso2.carbon.ml.commons.domain.MLDatasetVersion> getAllVersionsetsOfDataset(int tenantId, String userName, long datasetId) throws MLDataProcessingException
MLDataProcessingException
public List<Object> getScatterPlotPoints(org.wso2.carbon.ml.commons.domain.ScatterPlotPoints scatterPlotPoints) throws MLDataProcessingException
MLDataProcessingException
public List<Object> getScatterPlotPointsOfLatestVersion(long datasetId, org.wso2.carbon.ml.commons.domain.ScatterPlotPoints scatterPlotPoints) throws MLDataProcessingException
MLDataProcessingException
public List<Object> getChartSamplePoints(int tenantId, String user, long versionsetId, String featureListString) throws MLDataProcessingException
MLDataProcessingException
public List<Object> getChartSamplePointsOfLatestVersion(int tenantId, String user, long datasetId, String featureListString) throws MLDataProcessingException
MLDataProcessingException
public void process(org.wso2.carbon.ml.commons.domain.MLDataset dataset, InputStream inputStream) throws MLDataProcessingException, MLInputValidationException
dataset
- MLDataset
objectMLInputValidationException
MLDataProcessingException
public void deleteDataset(int tenantId, String userName, long datasetId) throws MLDataProcessingException
MLDataProcessingException
public void deleteDatasetVersion(int tenantId, String userName, long versionsetId) throws MLDataProcessingException
MLDataProcessingException
public List<String> getFeatureNames(long datasetId, String featureType) throws MLDataProcessingException
MLDataProcessingException
public String getSummaryStats(long datasetId, String featureName) throws MLDataProcessingException
MLDataProcessingException
Copyright © 2015 WSO2, Inc.. All Rights Reserved.