Csc 1302, Honors Principles of Computer Science II (Fall 2016)

Netflix - Part 3

Predict Using Customer Mean

Write a Java program, Netflix2.java, that predicts ratings using the average rating of the customer. Evaluate and print the RMSE.

For this program you will have to read the customerMeans.txt file and create a HashMap object:

  Map<Integer,Double> cmeans = new HashMap<Integer,Double>();
and populate the map with the ratings from the customerMeans.txt file for each customer (The key for the Map will be CustomerID and the Value for the Map will be the average rating of the customer). The program should take probe.txt, actualRatings.txt, and customerMeans.txt as command line input.
$ java Netflix2 probe.txt actualRatings.txt customerMeans.txt

Predict Using Movie Mean

Write a Java program, Netflix3.java, that predicts ratings using the average rating of the movie. Evaluate and print the RMSE.

For this program you will have to read the MovieMeans.txt file and create a HashMap object:

  Map<Integer,Double> mmeans = new HashMap<Integer,Double>();
and populate the map with the ratings from the MovieMeans.txt file for each customer (The key for the Map will be MovieID and the Value for the Map will be the average rating of the movie). The program should take probe.txt, actualRatings.txt, and movieMeans.txt as command line input.
$ java Netflix3 probe.txt actualRatings.txt movieMeans.txt

Predict Using Both Customer Mean and Movie Mean

Write a Java program, Netflix4.java, that predicts ratings using some combination (equally weighted?) of the average rating of the customer and the average rating of the movie. Evaluate and print the RMSE. For this you will have to construct and populate both of the HashMaps, cmeans and mmeans. The program should take probe.txt, actualRatings.txt, customerMeans.txt, and movieMeans.txt as command line input.
$ java Netflix4 probe.txt actualRatings.txt customerMeans.txt movieMeans.txt