public class DatasetService extends Object
Constructor and Description |
---|
DatasetService() |
Modifier and Type | Method and Description |
---|---|
static Boolean |
deleteDataset(String id)
Delete a dataset.
|
static String |
filter(Dataset dataset,
String idx_remove,
String scale,
String translation,
Boolean standardize,
Boolean ignore,
String attributeRange,
String attributeIndicies,
Integer bins,
Boolean useEqualFrequency,
String accept,
String uri)
WEKA filter methods
|
static String |
getArff(InputStream fileInputStream,
org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail,
String datasetUri,
String subjectid)
Get arff representation from dataset in mongoDB or from a posted file.
|
public static String getArff(InputStream fileInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, String datasetUri, String subjectid) throws IOException
fileInputStream
- sended filefileDetail
- details of sended filedatasetUri
- dataset/mongodb idsubjectid
- security tokenIOException
- IOException descriptionpublic static String filter(Dataset dataset, String idx_remove, String scale, String translation, Boolean standardize, Boolean ignore, String attributeRange, String attributeIndicies, Integer bins, Boolean useEqualFrequency, String accept, String uri) throws Exception
dataset
- dataset/mongodb ididx_remove
- attributes to remove (comma seperated String)scale
- factor for scaling the output rangetranslation
- translation of the output rangestandardize
- null/true Standardizes all numeric attributes in the given dataset to have zero mean and unit varianceignore
- ignore the class attribute for standardizeattributeRange
- range (comma separated list) of string attributes to convert to nominalattributeIndicies
- comma separated list of attribute indices e.g."first,2,8" (discretize)bins
- Number of bins (discretize)useEqualFrequency
- if true equal-frequency binning is used. Default is equal-width binning. (discretize)accept
- requested mime-typeuri
- URI of the datasetException
- exceptionspublic static Boolean deleteDataset(String id) throws ApiException
id
- of the datasetApiException
- API exceptionCopyright © 2018. All rights reserved.