public class DataModelFactory extends Object
DataModel
for mahout's algorithms. In this
version, it creates MahoutFileDataModel
objects.Constructor and Description |
---|
DataModelFactory(String path,
String delimiterRegex)
Factory constructor.
|
Modifier and Type | Method and Description |
---|---|
org.apache.mahout.cf.taste.model.DataModel |
getModel()
Method to get the model build.
|
@Inject public DataModelFactory(String path, String delimiterRegex) throws IOException
path
- path where is saved the CSV file.delimiterRegex
- delimiter that separates each data in the CSV file.IOException
Copyright © 2019. All rights reserved.