|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mahout.classifier.df.data.DataLoader
public final class DataLoader
Converts the input data to a Vector Array using the information given by the Dataset.
Generates for each line a Vector that contains :
| Method Summary | |
|---|---|
static Dataset |
generateDataset(CharSequence descriptor,
boolean regression,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path)
Generates the Dataset by parsing the entire data |
static Dataset |
generateDataset(CharSequence descriptor,
boolean regression,
String[] data)
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)
Loads the data from a file |
static Data |
loadData(Dataset dataset,
String[] data)
Loads the data from a String array |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 path
IOException - if any problem is encountered
public 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 path
DescriptorException
IOException
public static Dataset generateDataset(CharSequence descriptor,
boolean regression,
String[] data)
throws DescriptorException
descriptor - attributes description
DescriptorException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||