I'm working through "Mahout in Action", but using Clojure instead of
Java,, and I'm having trouble using an interface in the Mahout
library.  The example is as follows:

DataModel model = new FileDataModel(new File("intro.csv"));
RecommenderEvaluator evaluator =
  new AverageAbsoluteDifferenceRecommenderEvaluator();
RecommenderBuilder builder = new RecommenderBuilder() {
  @Override
  public Recommender buildRecommender(DataModel model)
    throws TasteException {
       UserSimilarity similarity = new
PearsonCorrelationSimilarity(model);
       UserNeighborhood neighborhood =
           new NearestNUserNeighborhood(2, similarity, model);
       return
          new GenericUserBasedRecommender(model, neighborhood,
similarity);
    }
}:
double score = evaluator.evaluate( builder, null, model, 0.7, 1.0);
System.out.println(score);

Its the RecommenderBuilder that's giving me trouble.  I've tried using
proxy with no luck.  Any suggestions?

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to