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

  Research various decision-making process options

Research various decision-making process options and the advantages and disadvantages of each. Select a decision-making process, or design your own process using your research as a guide.

  List the six basic functions of an operating system

List the six basic functions of an operating system. What distinguishes a multitasking operating system from a non-multitasking operating system?

  How do you convert contents of file shortlist to uppercase

How do you remove repeated lines from an unsorted file where repeated lines are contiguous. How do you convert the contents of the file shortlist to uppercase?

  What do you mean by ado.net

Your boss met with you this morning to inform you that the system you wrote two years ago using dBase IV now needs to be rewritten using Visual Basic.NET and ADO.NET.

  Implement the ordered dictionary ADT using an ordered list

Implement a class that implements the dictionary ADT by adapting the java.util.HashMap class. Implement the ordered dictionary ADT using an ordered list.

  Determine the temperature at the interface of the wire

A 3-mm-diameter and 12-m-long electric wire is tightly wrapped with a 1.5-mm-thick plastic cover whose thermal conductivity and emissivity are k = 0.20 W/m.

  Explain condition is met and a program to approximate

I just want to learn and see done programs with all these things. If their is a way to keep them mostly the same so I may compare to see differences this is good.

  Optimize a multiprogrammed batch system

Contrast the scheduling policies you might use when trying to optimize a time-sharing system with those you would use to optimize a multiprogrammed batch system.

  Evaluate robustness of bordas method by applying k random

Evaluate the robustness of Borda's method by applying k random swaps to each of m distinct copies of the permutation p = {1, 2, . . . , n}.

  Application for verifying pin number

The National Commerce Bank has hired you to generate an application which verifies a customer personal identification number (PIN).

  Questionwrite down a paper excluding title abstract

questionwrite down a paper excluding title abstract introduction and references describing concepts of the information

  Develop the applicable momentum integral equation

Consider a flat plate surrounded by a fluid at rest (at rest outside the boundary layer) and oriented vertically to a gravity field of strength g.

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