ludovikcoba / rrecsys

rrecsys: Environment for Assessing Recommender Systems
https://cran.r-project.org/package=rrecsys
23 stars 11 forks source link

Error in V[j, ] <- V[j, ] + lambda * (sigma * (-U[u, ]) - regJ * V[j, : NAs are not allowed in subscripted assignments #1

Closed perfectatdat closed 8 years ago

perfectatdat commented 8 years ago

I am getting this error

Error in V[j, ] <- V[j, ] + lambda * (sigma * (-U[u, ]) - regJ * V[j, : NAs are not allowed in sub-scripted assignments

on default settings, although there are no NAs in the dataset. When i set the lambda to 0.001 then I get the following error;

Error in U[u, ] <- U[u, ] + lambda * (sigma * (V[i, ] - V[j, ]) - regU * : replacement has length zero

AprUsg1.zip

ludovikcoba commented 8 years ago

I am sorry for the late answer. I tried to train a model with the BPR algorithm on the MovieLens dataset but I don't get that error. Please double check your matrix for NAs(command: anyNA(yourMatrix) ). The file you have attached is empty.

ludovikcoba commented 8 years ago

NA will be changed to a 0 in any rating matrix.