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
In the "solution" branch, the "total" variable is calculated incorrectly here:
RecommendationEngine/src/recommendationEngine.js
Line 22 in 2cd3165
and here:
Line 28 in 2cd3165
var total = agreements + symmetricDifference(user1.likes, user2.likes).length + symmetricDifference(user1.dislikes, user2.dislikes).length
...will double-count certain movies in the case where one user likes some of the movies that the other user dislikes.
The same applies for...
var total = disagreements + symmetricDifference(user1.likes, user2.dislikes).length + symmetricDifference(user1.dislikes, user2.likes).length
...when one user likes some of the same movies as the other user.
This causes the final value to be returned by both functions and fed into calculateSimilarity to be incorrect.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In the "solution" branch, the "total" variable is calculated incorrectly here:
RecommendationEngine/src/recommendationEngine.js
Line 22 in 2cd3165
and here:
RecommendationEngine/src/recommendationEngine.js
Line 28 in 2cd3165
var total = agreements + symmetricDifference(user1.likes, user2.likes).length + symmetricDifference(user1.dislikes, user2.dislikes).length
...will double-count certain movies in the case where one user likes some of the movies that the other user dislikes.
The same applies for...
var total = disagreements + symmetricDifference(user1.likes, user2.dislikes).length + symmetricDifference(user1.dislikes, user2.likes).length
...when one user likes some of the same movies as the other user.
This causes the final value to be returned by both functions and fed into calculateSimilarity to be incorrect.
The text was updated successfully, but these errors were encountered: