This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Grab(group = 'org.apache.mahout', module = 'mahout-core', version = '0.9') | |
| import org.apache.mahout.cf.taste.impl.common.FastByIDMap | |
| import org.apache.mahout.cf.taste.impl.common.FastIDSet | |
| import org.apache.mahout.cf.taste.impl.model.file.FileDataModel | |
| import org.apache.mahout.cf.taste.impl.recommender.GenericItemBasedRecommender | |
| import org.apache.mahout.cf.taste.impl.similarity.TanimotoCoefficientSimilarity | |
| //you can get this data from here: http://files.grouplens.org/datasets/movielens/ml-100k.zip | |
| def mlDir = new File(getClass().protectionDomain.codeSource.location.path).parent+'/ml-100k' |
NewerOlder