Hi Mark,
the DataModel is not created with the precomputed similarities but with
the original preference data, here is how you would set up a recommender
with precomputed item-similarities:
DataModel dataModel = new FileDataModel(new
File("/path/to/preferences.txt"));
ItemSimilarity similarity = new FileItemSimilarity(new
File("/path/to/similarities.txt"));
ItemBasedRecommender recommender = new
GenericItemBasedRecommender(dataModel, similarity);
--sebastian
On 13.03.2011 06:45, Mark wrote:
I've just created some precomputed item-similarities using
ItemSimilarityJob (LogLikelihoodSimilarity w/ boolean prefs). My
understanding is that I can create a similarity class using
FileItemSimilarity but what recommender should I be using with this?
All the recommenders that I know of take a DataModel and it seems kind
of redundant to create a FileDataModel using the same precomputed
item-similarities.
Can someone please explain to me how to use precomputed similarities?
Also what are some other similarities/recommendations I can precompute
ahead of time?
Thanks