it works fine if I use this code:

    public Recommender buildRecommender(DataModel dataModel) throws
TasteException {
        
        
        UserSimilarity userSimilarity = new
PearsonCorrelationSimilarity(dataModel);
        UserNeighborhood neighborhood =
                new NearestNUserNeighborhood(10, userSimilarity, dataModel);
        Recommender recommender =
                new GenericUserBasedRecommender(dataModel, neighborhood,
userSimilarity);
        return recommender;

    }

but if I create a dataModel objects here that it doesn't work. I think the
reason is that I have two dataModel objects created and the one that is
passed to the evalautor is not separated.







I get a result of 1.04.  Are you sure your data file is right? Should be
using ua.base from that data set.


-- 
View this message in context: 
http://old.nabble.com/evaluating-recommender-systems-tp26421408p26456606.html
Sent from the Mahout User List mailing list archive at Nabble.com.

Reply via email to