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+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents