Skip to content

Commit

Permalink
Fix scoring function
Browse files Browse the repository at this point in the history
  • Loading branch information
lthoang committed Jan 17, 2024
1 parent 784841f commit 78b8fd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cornac/models/dnntsp/dnntsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,4 +636,4 @@ def score(model: TemporalSetPrediction, history_baskets, total_items, device="cp
is_test=True,
)
preds = model(g, nodes_feature, edges_weight, lengths, nodes)
return preds[0].cpu().detach().numpy()
return preds.cpu().detach().numpy()

0 comments on commit 78b8fd2

Please sign in to comment.