Learn R Programming

recommenderlab (version 0.1-2)

MovieLense: MovieLense Dataset (100k)

Description

The 100k MovieLense ratings data set. The data was collected through the MovieLens web site (movielens.umn.edu) during the seven-month period from September 19th, 1997 through April 22nd, 1998. The data set contains about 100,000 ratings (1-5) from 943 users on 1664 movies.

Usage

data(MovieLense)

Arguments

format

The format is an object of class "realRatingMatrix"

source

GroupLens Research, http://www.grouplens.org/node/73

References

Herlocker, J., Konstan, J., Borchers, A., Riedl, J.. An Algorithmic Framework for Performing Collaborative Filtering. Proceedings of the 1999 Conference on Research and Development in Information Retrieval. Aug. 1999.

Examples

Run this code
data(MovieLense)
MovieLense

## visualize part of the matrix
image(MovieLense[1:100,1:100])

## number of ratings per user
hist(rowCounts(MovieLense))

## number of ratings per movie
hist(colCounts(MovieLense))

## mean rating (averaged over users)
mean(rowMeans(MovieLense))

## create a recommender
rec <- Recommender(MovieLense, method="POP")

pre <- predict(rec, MovieLense[1])
LIST(pre)

Run the code above in your browser using DataLab