Example usage for org.apache.mahout.classifier.df.data DataLoader generateDataset

List of usage examples for org.apache.mahout.classifier.df.data DataLoader generateDataset

Introduction

In this page you can find the example usage for org.apache.mahout.classifier.df.data DataLoader generateDataset.

Prototype

public static Dataset generateDataset(CharSequence descriptor, boolean regression, FileSystem fs, Path path)
        throws DescriptorException, IOException 

Source Link

Document

Generates the Dataset by parsing the entire data

Usage

From source file:imageClassify.Describe.java

License:Apache License

private static Dataset generateDataset(String descriptor, String dataPath, boolean regression)
        throws IOException, DescriptorException {
    Path path = new Path(dataPath);
    FileSystem fs = path.getFileSystem(new Configuration());

    return DataLoader.generateDataset(descriptor, regression, fs, path);
}