-
Notifications
You must be signed in to change notification settings - Fork 376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
why is crab's UserBasedRecommender so slow? #85
Comments
my code is very slow too, it is a problem |
Yes it is slow , maybe should we build it in the background and save the trained data into an indexer to retrieve them easily later on. Maybe there is another solution , or did you find anything usefull ? |
I have same problem! crab recommendation is very slow. |
I guess the project is dead! any alternative please ? |
3 hours for recommending on the movielens100k dataset is hard to imagine. If you are looking for basic SVD approaches, you can check the code for the SVD recommender in reco. It takes 15-25 seconds as I have tested. |
recommender = UserBasedRecommender(model, similarity, with_preference=True) |
the benchmark for crab is (http://www.slideshare.net/marcelcaraciolo/crab-a-python-framework-for-building-recommender-systems page-37)
Benchmarks Pure Python w/ Python w/ Scipy Dataset dicts and NumpyMovieLens 100k 15.32 s 9.56 s http://www.grouplens.org/node/73 Old Crab New Crab
however, in my case, I need to take more than 30 minutes to do it, I don't know the reason
my code is
model = MatrixPreferenceDataModel(recommend_data.data)
similarity = UserSimilarity(model, pearson_correlation)
recommender = UserBasedRecommender(model, similarity, with_preference=True)
recommender.recommend("6")
my data is NumpyMovieLens 100k, which contains 100,000 ratings from 1000 users on 1700 movies.
The text was updated successfully, but these errors were encountered: