public abstract class DatasetProcessor extends Object
Constructor and Description |
---|
DatasetProcessor(DatasetType type,
org.wso2.carbon.ml.commons.domain.MLDataset dataset) |
Modifier and Type | Method and Description |
---|---|
org.wso2.carbon.ml.commons.domain.MLDataset |
getDataset() |
String |
getFirstLine() |
String |
getTargetPath() |
DatasetType |
getType() |
void |
handleIgnoreException(String msg,
Exception e) |
void |
handleValidationException(String msg) |
void |
handleValidationException(String msg,
Exception e) |
abstract void |
process()
Process a given dataset and use
setDataset(MLDataset) to set expected data. |
void |
setDataset(org.wso2.carbon.ml.commons.domain.MLDataset dataset) |
void |
setFirstLine(String firstLine) |
void |
setTargetPath(String targetPath) |
void |
setType(DatasetType type) |
abstract org.wso2.carbon.ml.commons.domain.SamplePoints |
takeSample()
Take a random sample of the dataset.
|
void |
validate()
Perform basic validation required by all dataset processors.
|
public DatasetProcessor(DatasetType type, org.wso2.carbon.ml.commons.domain.MLDataset dataset)
public void validate() throws MLInputValidationException
MLInputValidationException
public abstract void process() throws MLDataProcessingException
setDataset(MLDataset)
to set expected data.MLDataProcessingException
public abstract org.wso2.carbon.ml.commons.domain.SamplePoints takeSample() throws MLDataProcessingException
SamplePoints
of sample data.MLDataProcessingException
public void handleValidationException(String msg) throws MLInputValidationException
MLInputValidationException
public void handleValidationException(String msg, Exception e) throws MLInputValidationException
MLInputValidationException
public org.wso2.carbon.ml.commons.domain.MLDataset getDataset()
public void setDataset(org.wso2.carbon.ml.commons.domain.MLDataset dataset)
public DatasetType getType()
public void setType(DatasetType type)
public String getTargetPath()
public void setTargetPath(String targetPath)
public String getFirstLine()
public void setFirstLine(String firstLine)
Copyright © 2016 WSO2, Inc.. All Rights Reserved.