Create an array that represents recommended ratings

Assignment Help Computer Engineering
Reference no: EM131985088

Problem

Airplane Alien Bridesmaids Cloudy with a Chance of Meatballs Exorcist Fantastic Mr. Fox Forrest Gump Hangover Harold and Kumar Go to White Castle The Help Incredibles Jaws Monsters, Inc Psycho Raiders of the Lost Ark Silver Linings Playbook Titanic Twilight Eclipse Up Zoolander

Using java;

Create an array that represents recommended ratings for the user. There should be 20 numbers in this array, one for each movie. higher the number, the more strongly your program thinks the user will like the movie. The number should be the average over all 30 ratings for the movie that are greater than 0 (only include ratings for users who have actually seen the movie). However, it should be a weighted average: people who are more similar to the current user should have a higher weight than people who are less similar.

Calculating Similarity

Your program is going to try to decide whether or not you might like a movie that you haven't yet seen. It's going to come up with a score, which represents the likelihood that you'll enjoy it. If people who have tastes similar to yours seem to like it, the program will assign that movie a higher score. The question is, How do you determine similarity?

You can come up with your own way of judging how similar two people's ratings are. One suggestion is to compute what's called cosine similarity:

For person 1, compute the square of each movie rating for movies they have seen, and add these up and then take the square root. Store the result in a variable called p1. For example, if person 1 saw 3 movies and rated them 4, 4, and 2, then p1 = sqrt(4*4 + 4*4 + 2*2) = sqrt(36) = 6.

Do the same for person 2, and store the result in a variable called p2.

For each movie that both people have seen, compute the product of their ratings. Add up all of these products, and store the result in a variable called both. For example, if person 1 and person 2 both saw movies 7 and 14 (out of 20), and person 1 rated them as 4 for movie 7 and 2 for 14, and person 2 rated them as 2 for movie 7 and 3 for movie 14, then both = 4*2 + 2*3.

The cosine similarity score between person 1 and person 2 is (both / (p1 * p2)).

Reference no: EM131985088

Questions Cloud

Describe checksum method of ensuring data integrity in rom : Describe the checksum method of ensuring data integrity in ROM. Describe the parity bit method of ensuring data integrity in RAM.
List two ways to modify a class and save it out as new class : What instruction can be used to directly change the value of a property? List two ways to modify a class and save it out as a new class.
Calculate ecos current cost of preferred stock : Since its inception, Eco Plastics Company has been revolutionizing plastic and trying to do its part to save the environment.
What values do cyrano live by : What values do Cyrano live by? Identify three positive values and one negative value that the audience should learn from the play.
Create an array that represents recommended ratings : Create an array that represents recommended ratings for the user. There should be 20 numbers in this array, one for each movie.
Understanding of the relationship dynamics : Family therapists, are there to help the adolescent and family gain understanding of the relationship dynamics and background issues
What is the function of the underground machines : What is the function of the underground machines? What is the name of the creatures who live above ground?
Calculate the incremental impact on ebit for water filter : If SI decided today to reduce the price, sales are projected to increase by 50%. What would be the incremental impact on this year's EBIT of such a price drop?
Social ostracism from the white community : In Stephen Cranes "The Monster" , Dr. Trescott's insistence on caring for Henry despite the social ostracism from the white community ask the reader

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd