Hoops indeed!  Thank you, the solution works great.

On May 5, 11:05 pm, ataggart <alex.tagg...@gmail.com> wrote:
> Wow! What hoops one has to jump through to fit things in an "OO" API,
> eh?
>
> Anyway, if you're using 1.2:
>
> (reify RecommenderBuilder
>   (buildRecommender [this model]
>     (let [similarity (PearsonCorrelationSimilarity. model)
>            neighborhood (NearestNUserNeighborhood. 2 similarity
> model)]
>       (GenericUserBasedRecommender. model neighborhood similarity))))
>
> Or if the "model" used everywhere is the same, you can skip some
> stuff:
>
> (let [model (FileDataModel. (File. "intro.csv"))
>       similarity (PearsonCorrelationSimilarity. model)
>       neighborhood (NearestNUserNeighborhood 2 similarity model)
>       recommender  (GenericUserBasedRecommender model neighborhood
> similarity)
>       builder (reify RecommenderBuilder (buildRecommender [_ _]
> recommender))
>       evaluator (AverageAbsoluteDifferenceRecommenderEvaluator.)]
>   (.evaluate evaluator nil model 0.7 1.0))
>
> On May 5, 9:23 pm, Krukow <karl.kru...@gmail.com> wrote:
>
>
>
> > On May 5, 2:40 pm, klathrop <gamingscien...@gmail.com> wrote:
> > [snip]
>
> > > Its the RecommenderBuilder that's giving me trouble.  I've tried using
> > > proxy with no luck.  Any suggestions?
>
> > Can you post the code that fails?
>
> > /Karl
>
> > --
> > 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 
> > athttp://groups.google.com/group/clojure?hl=en
>
> --
> 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 
> athttp://groups.google.com/group/clojure?hl=en

-- 
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