Question: A Social - Network Based Recommendation System for last.fm In this assignment, you are asked to design and implement a social network - based recommender
A SocialNetwork Based Recommendation System for last.fm
In this assignment, you are asked to design and implement a social networkbased
recommender system for last.fm
You are given the following dataset
Dataset: data.zip file contains social networking, tagging, and music artist listening information
from a set of K users from Last.fm online music system.
There are users and artists
There are userfriend relations
There are userlistened artist relations user artist, listeningCount
Files:
artists.dat: This file contains information about music artists listened and tagged by the
users. url and pictureURL will not be used in the assignment.
File format: id t name t url t pictureURL
userartists.dat: This file contains the artists listened by each user. It also provides a
listening count for each user artist pair.
File format: userID t artistID t weight
userfriends.dat: These files contain the friend relations between users in the database.
File format: userID t friendID
Functional Requirements:
Create a class, called LastFMRecommender.java. The class processes the data sets
and provides the following public functionalities:
o listFriendsint user: prints the list of friends of the given user
o commonFriendsint user int user: prints the users friends in common
with user
o listArtistsint user int user: prints the list of artists listened by both users
o listTop: prints the list of top most popular artists listened by all users
o recommendint user: recommends most popular artists listened by the
given user and hisher friends.
Create a Junit test class to test the methods in LastFMRecorder.java
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
