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 <[email protected]> wrote:
> On May 5, 2:40 pm, klathrop <[email protected]> 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 [email protected]
> Note that posts from new members are moderated - please be patient with your
> first post.
> To unsubscribe from this group, send email to
> [email protected]
> 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 [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en