Skip to content

Commit

Permalink
correct nthreads passed to predict (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cortes authored Jan 18, 2021
1 parent a887082 commit 48f12a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/MatrixFactorizationRecommender.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ MatrixFactorizationRecommender = R6::R6Class(
not_recommend = as(not_recommend, "RsparseMatrix")

uids = rownames(user_embeddings)
indices = find_top_product(user_embeddings, item_embeddings, k, not_recommend, items_exclude, self$global_bias)
indices = find_top_product(user_embeddings, item_embeddings, k, not_recommend, items_exclude, glob_mean=self$global_bias)

data.table::setattr(indices, "dimnames", list(uids, NULL))
data.table::setattr(indices, "ids", NULL)
Expand Down

0 comments on commit 48f12a4

Please sign in to comment.