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

Netflix - Part 2

Compute Customer Mean Ratings

Write a Java program, CustomerMeans.java, that reads all the 17770 ratings files and computes the average rating value given by each customer and prints to file, customerMeans.txt. The program takes the training_set folder as command line input.
$ java CustomerMeans training_set
The customerMeans.txt file should look something like the following
1048592:3.7461571428571433
2097185:3.10000969267139578
1048594:4.12543188798554747
2097186:3.2701177215189871
6:3.18476964856230205
7:3.40805073779796275
...
...
...
where each line contains the customer number followed by a ":" followed by the average rating given by that customer for all movies. (NOTE: The mean values shown are sample values and not the CORRECT answers)

Compute Movie Mean Ratings

Write a Java program, MovieMeans.java, that reads all the 17770 ratings files and computes the average rating value given to each movie and prints to file, movieMeans.txt.
$ java MovieMeans training_set
The MovieMeans.txt file should look something like the following
1:3.1462429616087755
2:3.04467931034482753
3:3.03785308151093462
4:2.8638633802816913
5:3.3159982456140407
6:3.5189035328753607
7:4.4742677419354844
...
...
...
where each line contains the movie id followed by a ":" followed by the average rating given to that movie by all customers. (NOTE: The mean values shown are sample values and not the CORRECT answers)