Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write the code for Wordcount.java to display the output for Average rating and the number of user who rated the movie, the u.data set The
write the code for Wordcount.java to display the output for Average rating and the number of user who rated the movie, the u.data set
The following file is from Movielens dataset which shows user ratings for movies: http://files.grouplens.org/datasets/movielens/ml-100k/u.data You can find more about this dataset here: https://files.grouplens.org/datasets/movielens/ml-100k-README.txt u.data is the full u data set with 100000 ratings by 943 users on 1682 items. Each user has rated at least 20 movies. Users and items are numbered consecutively from 1. The data is randomly ordered. This is a tab separated list of user id | item id | rating | timestamp. The time stamps are unix seconds since 1/1/1970 UTC. For example, the following line of the file 95 546 2 879196566 Is interpreted as follows: User 95 has rated movie 546, 2/5 (rates are in the range 1-5) at time 879196566 (Monday, November 10, 1997 9:16:06 PM, GMT). Your task is to use MapReduce programming and find the following information for each movie: the average rating and the number of users who rated this movie. Here is an example of the output: Movie ID 340 499 Average Rating 3.78 Number of Users Rated 298 4.02 532 You can choose the output format. However, the required information must be included in the output. Hint: You can change the WordCount program such that it ignores all tokens in a line except the third one (rating value in the file exists in the third column). 2
Step by Step Solution
★★★★★
3.46 Rating (149 Votes )
There are 3 Steps involved in it
Step: 1
Sure heres a basic implementation of the WordCount program in Java for finding the average rating and the number of users who rated each movie in the ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started