Answered step by step
Verified Expert Solution
Link Copied!

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:
'Dune2': 8.7, 'Challengers': 7.8, 'Civil War': 7.6, 'Tarot': 5.0, 'American Fiction': 7.5
Alice: 'Dune2', 'Civil War', 'American Fiction', 'Tarot'
Cathy: 'Dune2', 'Civil War', 'Challengers', 'Tarot'
Write a program to do the following:
1. Create a dictionary for movie ratings
2. 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 if-else statement
3. Create two sets for the users movie watching histories
4. Calculate the movie taste similarity between Alice and Cathy. Similarity is calculated as
the ratio of #CommonMovies to #TotalMovies watched by the two.
E.g. similarity({a, b},{b, c})=1/3
5. Check whether the similarity between Alice and Cathy is above 0.4. 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Temporal Databases Research And Practice Lncs 1399

Authors: Opher Etzion ,Sushil Jajodia ,Suryanarayana Sripada

1st Edition

3540645195, 978-3540645191

More Books

Students also viewed these Databases questions