Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Given the movie ratings and users movie watching histories as follows: 'Dune 2 ' : 8 . 7 , 'Challengers': 7 . 8 , 'Civil
Given the movie ratings and users movie watching histories as follows:
'Dune: 'Challengers': 'Civil War': 'Tarot': 'American Fiction':
Alice: 'Dune 'Civil War', 'American Fiction', 'Tarot'
Cathy: 'Dune 'Civil War', 'Challengers', 'Tarot'
Write a program to do the following:
Create a dictionary for movie ratings
A new user Brad is thinking about watching either Civil War or American Fiction. Help
him to choose one with higher rating.
Requirement: use dictionary entry accessing and ifelse statement
Create two sets for the users movie watching histories
Calculate the movie taste similarity between Alice and Cathy. Similarity is calculated as
the ratio of #CommonMovies to #TotalMovies watched by the two.
Eg similaritya bb c
Check whether the similarity between Alice and Cathy is above If yes, recommend
movies to Cathy. The recommended movies should be
in Alices watching history
has not watched by Cathy
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started