Question: Python Language Problem: Use Python c. (10 Points) write a function recommend_books(current_user_id) to find a set of recommendations of new books to read for a

Python Language Problem:Python Language Problem: Use Python c. (10 Points) write a function recommend_books(current_user_id)

Use Python

c. (10 Points) write a function recommend_books(current_user_id) to find a set of recommendations of new books to read for a given user id. The function will return a set of recommendations in a list. This method should use the methods already described above to find the most similar user to the current_user_id. The method will recommend all the books that the similar user has rated as a 3 or 5 that the current_user_id has not read yet. Remember, if a user has not given any rating for a book that means they have not read that book yet The elements of the list returned should have the format shown below (average rating is shown in the parenthesis) Remember we have created a function already to create this format for an individual book. [" (3.95) The Hitchhiker's Guide To The Galaxy by Douglas Adams", "(2.98) Watership Down by Richard Adams", " (4.3) Foundation Series by Isaac Asimov", " (3.26) Ender's Game by Orson Scott Card", " (2.87) The Lord of the Rings by JRR Tolkien"] Algorithm Hint: given current_user find most similar user for each book liked by the similar user if current user has not read the book add recommendation for this book

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!