Questions tagged [recommenderlab]

26 questions
3
votes
0 answers

Recommenderlab: Receiving Duplicate Predictions for Multiple Users

I am using Recommenderlab in R to build a recommendation system to provide craft-beer suggestions to new users. However, upon running the model, I am receiving the same predictions per user for a majority of the training dataset, or receiving…
2
votes
1 answer

Double quotes with List in R

I am trying to add quotes to a list which is output from predict in recommenderlab library. which looks something as below. I am facing challenge to get this into a concatenated string something like List: "Key" "value1" "value2" "value3"…
Santhosh
  • 19
  • 5
2
votes
1 answer

Predict using userid in recommenderlab

I have a recommendation problem that is fairly simple: I would like build a hybrid recommender with recommenderlab in R where I recommend already liked movies in the MovieLense data set together with popular movies and some random…
FilipW
  • 1,412
  • 1
  • 13
  • 25
2
votes
0 answers

R : Use custom similarity function in Recommender function in R

I try to build a model using my dataset matrix (ratingmatrix) and a similarity matrix (Custom similarity matrix) in R using RecommerderLab. In the Recommender function I'm only able to pass default similarity fucntions as method parameter such as…
1
vote
0 answers

How to bind Binary Rating Matrices with different columns?

I'm currently working with the package *recommenderlab *and have run into some memory issues because I work with a lot of data. The problem lies in the creation of the matrices, so I thought I could solve this by using a function, that merges small…
BoutMouse
  • 11
  • 1
1
vote
0 answers

R spreaded matrix but had Error: Can't assign to elements that don't exist

Win10 Build 18363.836; R version R-4.0.2; RStudio version 1.3.1093; CPU: Intel i7-7500U; Physical Memory: 16GB; HDD: 500GB SSD I am working on the Instacart Market Basket dataset. Inorder to build recommendation models with the recommenderlab R…
1
vote
2 answers

Error in neighbors[, x] : incorrect number of dimensions when using Predict function for more than 10 rows, recommenderLab in R

I have a data set, Recoset, of ratings given by users for certain product categories. I am trying to learn use the ratings given by users to predict product categories that other users may like by putting the User Based Collaborative Filtering of…
Rudra
  • 73
  • 4
1
vote
1 answer

Different results from base R cor() function than similarity() function in recommenderlab package?

Can anyone explain why these two correlation matrices return different results? library(recommenderlab) data(MovieLense) cor_mat <- as( similarity(MovieLense, method = "pearson", which = "items"), "matrix" ) cor_mat_base <- suppressWarnings(…
1
vote
0 answers

Understanding the given protocol of recommenderlab library in R

I am trying to understand the given protocol of recommenderlab library in R. From the original document https://cran.r-project.org/web/packages/recommenderlab/vignettes/recommenderlab.pdf : Testing is perfomed by withholding items (parameter…
1
vote
2 answers

Error in sample.int(length(x), size, replace, prob) : invalid 'size' argument ; when i using evaluationScheme

I would like to evaluate my model with the function of the package Recommenderlab scheme <- evaluationScheme(UserByProductRRM, method = "cross-validation", k = 10, given =-1 , goodRating = 4) but I don't understand why I have this error Error in…
1
vote
1 answer

Interpreting evaluationscheme from Recommenderlab in R

I have created an evaluation scheme using the recommenderlab package with binaryRatingMatrix. How can I see which all users from the actual data are there in unknown test set? scheme <- evaluationScheme(data = data1, method = "split", train = 0.9,…
Amrita
  • 11
  • 2
1
vote
0 answers

movielense popularity recommender code with R

I'm now studying R, and now doing project about movie recommend algorithm. I used movielense 100k data with recommenderlab library, and use these…
MS.K
  • 25
  • 6
1
vote
1 answer

Using R - recommenderlab and can't get results into dataframe for Microsoft SQL Server

This is my first post here. I'm very much a newbie when it comes to R, so please keep that in mind. I'm building a recommender system (User Content Based Filtering) using the recommenderlab library from CRAN. I'm trying to use…
Jeff G
  • 11
  • 2
1
vote
1 answer

Data looks different after converting to realRatingMatrix

I am trying to work on a recommendation system in R. Data Set below: https://drive.google.com/file/d/1FVh-Xg3NBtzKgZHnDTi7IjaATW_fPmW9/view?usp=sharing beer_data <- read.csv("beer_data.csv", stringsAsFactors = F) library(recommenderlab) r <-…
1
vote
1 answer

Subsetting a data frame using the sum of each row vector R

Hi I have some data I am reading in from a csv, which is set out in binary form: 1 2 3 4...N 1 0 1 0 1...1 2 1 1 0 1...1 3 0 0 0 0...0 4 1 0 1 1...1 . 1 1 1 0...1 . 1 0 0 0...1 N 0 0 1 1...0 screenshot of str(data) I want to take a subset…
1
2