We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
from scikits.crab import datasets
movies = datasets.load_sample_movies() songs = datasets.load_sample_songs() from scikits.crab.models import MatrixPreferenceDataModel
model = MatrixPreferenceDataModel(movies.data)
from scikits.crab.metrics import pearson_correlation from scikits.crab.similarities import UserSimilarity
similarity = UserSimilarity(model, pearson_correlation)
from scikits.crab.recommenders.knn import UserBasedRecommender
recommender = UserBasedRecommender(model, similarity, with_preference=True)
recommender.recommend(5)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
from scikits.crab import datasets
movies = datasets.load_sample_movies()
songs = datasets.load_sample_songs()
from scikits.crab.models import MatrixPreferenceDataModel
Build the model
model = MatrixPreferenceDataModel(movies.data)
from scikits.crab.metrics import pearson_correlation
from scikits.crab.similarities import UserSimilarity
Build the similarity
similarity = UserSimilarity(model, pearson_correlation)
from scikits.crab.recommenders.knn import UserBasedRecommender
Build the User based recommender
recommender = UserBasedRecommender(model, similarity, with_preference=True)
Recommend items for the user 5 (Toby)
recommender.recommend(5)
The text was updated successfully, but these errors were encountered: