Skip to content

Instantly share code, notes, and snippets.

@sanealytics
Created June 12, 2012 14:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sanealytics/2917972 to your computer and use it in GitHub Desktop.
Save sanealytics/2917972 to your computer and use it in GitHub Desktop.
Recommenderlab walkthrough 1-1
# Load required library
library(recommenderlab) # package being evaluated
library(ggplot2) # For plots
# Load the data we are going to work with
data(MovieLense)
MovieLense
# 943 x 1664 rating matrix of class ‘realRatingMatrix’ with 99392 ratings.
# Visualizing a sample of this
image(sample(MovieLense, 500), main = "Raw ratings")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment