@Deprecated public final class DataLoader extends Object
| Modifier and Type | Method and Description |
|---|---|
static Dataset |
generateDataset(CharSequence descriptor,
boolean regression,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path)
Deprecated.
Generates the Dataset by parsing the entire data
|
static Dataset |
generateDataset(CharSequence descriptor,
boolean regression,
String[] data)
Deprecated.
Generates the Dataset by parsing the entire data
|
static Data |
loadData(Dataset dataset,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path fpath)
Deprecated.
Loads the data from a file
|
static Data |
loadData(Dataset dataset,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path[] pathes)
Deprecated.
Loads the data from multiple paths specified by pathes
|
static Data |
loadData(Dataset dataset,
String[] data)
Deprecated.
Loads the data from a String array
|
public static Data loadData(Dataset dataset, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path fpath) throws IOException
fs - file systemfpath - data file pathIOException - if any problem is encounteredpublic static Data loadData(Dataset dataset, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path[] pathes) throws IOException
IOExceptionpublic static Data loadData(Dataset dataset, String[] data)
public static Dataset generateDataset(CharSequence descriptor, boolean regression, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path) throws DescriptorException, IOException
descriptor - attributes descriptionregression - if true, the label is numericalfs - file systempath - data pathDescriptorExceptionIOExceptionpublic static Dataset generateDataset(CharSequence descriptor, boolean regression, String[] data) throws DescriptorException
descriptor - attributes descriptionDescriptorExceptionCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.