List of usage examples for org.apache.mahout.classifier.df DFUtils storeString
public static void storeString(Configuration conf, Path path, String string) throws IOException
From source file:imageClassify.Describe.java
License:Apache License
private static void runTool(String dataPath, Iterable<String> description, String filePath, boolean regression) throws DescriptorException, IOException { log.info("Generating the descriptor..."); String descriptor = DescriptorUtils.generateDescriptor(description); Path fPath = validateOutput(filePath); log.info("generating the dataset..."); Dataset dataset = generateDataset(descriptor, dataPath, regression); log.info("storing the dataset description"); String json = dataset.toJSON(); DFUtils.storeString(new Configuration(), fPath, json); }