Skip to content
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

"Was_impossible" meaning #413

Open
mfahadakbar opened this issue Jul 6, 2022 · 1 comment
Open

"Was_impossible" meaning #413

mfahadakbar opened this issue Jul 6, 2022 · 1 comment

Comments

@mfahadakbar
Copy link

Description

What does "was_impossible = False" mean in the output of the predict method? I tried to find it out through documentation, but couldn't find any explanation. Thank you

@NicolasHug
Copy link
Owner

This happens when the algorithm isn't able to output a prediction, for example when the user or the item isn't part of the training set. You'll find more details of its usage throughout the code: https://github.com/NicolasHug/Surprise/search?q=PredictionImpossible

When was_impossible = True, the prediction is set to the global mean rating of the training set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants