public static void main(String... args) throws IOException, TasteException, OptionException {
RecommenderEvaluator evaluator = new AverageAbsoluteDifferenceRecommenderEvaluator();
File ratingsFile = TasteOptionParser.getRatings(args);
if (ratingsFile != null) {
DataModel model = new NetflixDataModel(ratingsFile, true);
double evaluation = evaluator.evaluate(new NetflixRecommenderBuilder(), null, model, 0.9, 0.1);
log.info(String.valueOf(evaluation));
} else {
log.error("Netflix Recommender needs a ratings file to work. Please provide it with the -i command line option.");
}
}