We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4639087 + 6149723 commit 6c53f92Copy full SHA for 6c53f92
1 file changed
recommenders/models/lightfm/lightfm_utils.py
@@ -253,8 +253,8 @@ def prepare_all_predictions(
253
254
all_predictions["prediction"] = all_predictions.apply(
255
lambda x: model.predict(
256
- user_ids=int(x["uid"]),
257
- item_ids=[x["iid"]],
+ user_ids=np.array([x["uid"]], dtype=np.int32),
+ item_ids=np.array([x["iid"]], dtype=np.int32),
258
user_features=user_features,
259
item_features=item_features,
260
num_threads=num_threads,
0 commit comments