smartcat-labs / collaboratory

Laboratory for collaborative filtering
26 stars 18 forks source link

Getting an error with using cal_cor function. Please help. #2

Open Heisenberg9512 opened 6 years ago

Heisenberg9512 commented 6 years ago

Error in sort.int(x, na.last = na.last, decreasing = decreasing, ...) : index 245 outside bounds

I executed the following command when I got this error:

res <- evaluate_cf(ratings_matrix, number_of_folds = 10, alg_method = "ubcf", normalization = TRUE, similarity_metric = cal_cor, k = 300, make_positive_similarities = FALSE, rowchunk_size = 1000, columnchunk_size = 2000)

stefan-nikolic commented 5 years ago

Which dataset was used (ratings_matrix), or what dimensions it had? This information would be necessary to reproduce the issue.

jeffverboon commented 4 years ago

same issue

res <- predict_cf(ratingmat, prediction_indices, "ubcf", TRUE, cal_cos, 300, FALSE, 2000, 1000) dim(ratingmat) [1] 381820 11681