CSC 127A Lecture Notes - Lecture 30: Init

20 views3 pages

Document Summary

{bob : {review(title, author, rating): when bob needs another book it becomes. {bob : {review(title, author, rating), review(title, author, rating)} When calculating ratings between user: the higher the similarity score, the higher the number, if they both scored an item negatively, then it will come out to a positive number and will increase the similarity score: If someone hates harry potter and rates it as a -5, and another person loves the book and rates it as 5. If they both love lord of the rings, but both hate harry potter, it will look like the following: 5*5 + -5 * -5 = 50: this is a very high similarity rating. Add function: name, title, author, and rating, no need to output anything at this time, however, this should be recalculated when a best is called by the user. Simply add two underscores to a field: self. __name.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents