All Projects → mhahsler → Recommenderlab

mhahsler / Recommenderlab

recommenderlab - Lab for Developing and Testing Recommender Algorithms - R package

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Recommenderlab

R Appveyor
Tools for using R with AppVeyor (https://appveyor.com)
Stars: ✭ 133 (-23.56%)
Mutual labels:  cran
Matrixstats
R package: Methods that Apply to Rows and Columns of Matrices (and to Vectors)
Stars: ✭ 151 (-13.22%)
Mutual labels:  cran
Dbscan
Density Based Clustering of Applications with Noise (DBSCAN) and Related Algorithms - R package
Stars: ✭ 161 (-7.47%)
Mutual labels:  cran
Pinp
Pinp Is Not PNAS -- Two-Column PDF Template
Stars: ✭ 134 (-22.99%)
Mutual labels:  cran
Arules
Mining Association Rules and Frequent Itemsets with R
Stars: ✭ 139 (-20.11%)
Mutual labels:  cran
V8
Embedded JavaScript Engine for R
Stars: ✭ 155 (-10.92%)
Mutual labels:  cran
Batchtools
Tools for computation on batch systems
Stars: ✭ 127 (-27.01%)
Mutual labels:  cran
Simmer
Discrete-Event Simulation for R
Stars: ✭ 170 (-2.3%)
Mutual labels:  cran
Latex2exp
Use LaTeX in R. More LaTeX, less plotmath!
Stars: ✭ 148 (-14.94%)
Mutual labels:  cran
Webservices
CRAN WebTechnologies Task View
Stars: ✭ 160 (-8.05%)
Mutual labels:  cran
D3r
d3.js helpers for R
Stars: ✭ 133 (-23.56%)
Mutual labels:  cran
Anytime
Anything to POSIXct or Date Converter
Stars: ✭ 137 (-21.26%)
Mutual labels:  cran
Explor
Interfaces for Multivariate Analysis in R
Stars: ✭ 157 (-9.77%)
Mutual labels:  cran
Rblpapi
R package interfacing the Bloomberg API from https://www.bloomberglabs.com/api/
Stars: ✭ 133 (-23.56%)
Mutual labels:  cran
Import
An Import Mechanism For R
Stars: ✭ 165 (-5.17%)
Mutual labels:  cran
Drat
Drat R Archive Template
Stars: ✭ 127 (-27.01%)
Mutual labels:  cran
Tableone
R package to create "Table 1", description of baseline characteristics with or without propensity score weighting
Stars: ✭ 151 (-13.22%)
Mutual labels:  cran
Arsenal
An Arsenal of 'R' Functions for Large-Scale Statistical Summaries
Stars: ✭ 171 (-1.72%)
Mutual labels:  cran
Slopegraph
Edward Tufte-Inspired Slopegraphs
Stars: ✭ 166 (-4.6%)
Mutual labels:  cran
Osrm
Shortest Paths and Travel Time from OpenStreetMap with R
Stars: ✭ 160 (-8.05%)
Mutual labels:  cran

recommenderlab - Lab for Developing and Testing Recommender Algorithms - R package

CRAN version CRAN RStudio mirror downloads R-CMD-check AppVeyor Build Status

This R package provides an infrastructure to test and develop recommender algorithms. The package supports rating (e.g., 1-5 stars) and unary (0-1) data sets. Supported algorithms are:

  • User-based collborative filtering (UBCF)
  • Item-based collborative filtering (IBCF)
  • SVD with column-mean imputation (SVD)
  • Funk SVD (SVDF)
  • Alternating Least Squares (ALS)
  • MAtrix factorization with LIBMF (LIBMF)
  • Association rule-based recommender (AR)
  • Popular items (POPULAR)
  • Randomly chosen items for comparison (RANDOM)
  • Re-recommend liked items (RERECOMMEND)
  • Hybrid recommendations (HybridRecommender)

For evaluation, the framework supports given-n and all-but-x protocols with

  • Train/test split
  • Cross-validation
  • Repeated bootstrap sampling

Evaluation measures are:

  • Rating errors: MSE, RMSE, MAE
  • Top-N recommendations: TPR/FPR (ROC), precision and recall

Installation

Stable CRAN version: install from within R with

install.packages("recommenderlab")

Current development version: Download package from AppVeyor or install from GitHub (needs devtools).

devtools::install_github("mhahsler/recommenderlab")

Usage

Load the package and prepare a dataset (included in the package).

library("recommenderlab")
data("MovieLense")
### use only users with more than 100 ratings
MovieLense100 <- MovieLense[rowCounts(MovieLense) >100,]
MovieLense100
358 x 1664 rating matrix of class ‘realRatingMatrix’ with 73610 ratings.

Train a user-based collaborative filtering recommender using a small training set.

train <- MovieLense100[1:50]
rec <- Recommender(train, method = "UBCF")
rec
Recommender of type ‘UBCF’ for ‘realRatingMatrix’ 
learned using 50 users.

Create top-N recommendations for new users (users 101 and 102)

pre <- predict(rec, MovieLense100[101:102], n = 10)
pre
Recommendations as ‘topNList’ with n = 10 for 2 users. 
as(pre, "list")
$`291`
 [1] "Alien (1979)"              "Titanic (1997)"           
 [3] "Contact (1997)"            "Aliens (1986)"            
 [5] "Amadeus (1984)"            "Godfather, The (1972)"    
 [7] "Henry V (1989)"            "Sting, The (1973)"        
 [9] "Dead Poets Society (1989)" "Schindler's List (1993)"  

$`292`
 [1] "Usual Suspects, The (1995)" "Amadeus (1984)"            
 [3] "Raising Arizona (1987)"     "Citizen Kane (1941)"       
 [5] "Titanic (1997)"             "Brazil (1985)"             
 [7] "Stand by Me (1986)"         "M*A*S*H (1970)"            
 [9] "Babe (1995)"                "GoodFellas (1990)"   

A simple Shiny App running recommenderlab can be found at https://mhahsler-apps.shinyapps.io/Jester/ (source code).

References

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].