Hi again. I'm getting a really hard time to use Taste using the Large 10M
dataset. Using FileDataModel is taking too long to recompute the sim-matrix.
I'm assuming a new user has just arrived (not on the user data or item data)
and starts voting. Trying to refresh the matrix takes over 25 seconds a
large time when considering a website for instance.
So I found this class. I tried to use it just like shown on javadocs:
PlusAnonymousUserDataModel plusmodel = new
PlusAnonymousUserDataModel(datamodel);
PearsonCorrelationSimilarity sim = new
PearsonCorrelationSimilarity(datamodel);
Recommender recommender = new GenericItemBasedRecommender(datamodel,sim);
PreferenceArray pref = new GenericUserPreferenceArray(10);
pref.setUserID(0, PlusAnonymousUserDataModel.TEMP_USER_ID);
for(int i=0;i<10;i++){
pref.setItemID(i, votes[i][0]);
pref.setValue(i,votes[i][1]);
}
synchronized(pref) {
plusmodel.setTempPrefs(pref);
recommender.recommend(PlusAnonymousUserDataModel.TEMP_USER_ID,
10);
}
But this is causing an NoSuchUserException at the recommender.
I tried using the plusmodel on similarity and recommender instead of the
realmodel, but did not work as well.
--
The intuitive mind is a sacred gift and the
rational mind is a faithful servant. We have
created a society that honors the servant and
has forgotten the gift.