Open Heisenberg9512 opened 6 years ago
Which dataset was used (ratings_matrix), or what dimensions it had? This information would be necessary to reproduce the issue.
same issue
res <- predict_cf(ratingmat, prediction_indices, "ubcf", TRUE, cal_cos, 300, FALSE, 2000, 1000) dim(ratingmat) [1] 381820 11681
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)