Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lightfm/_lightfm_fast.pyx.template
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,8 @@ def fit_logistic(CSRMatrix item_features,
item_alpha,
user_alpha)

return loss
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is, in fact, the loss of the current example. So not what you want at all!



def fit_warp(CSRMatrix item_features,
CSRMatrix user_features,
Expand Down Expand Up @@ -911,6 +913,8 @@ def fit_warp(CSRMatrix item_features,
item_alpha,
user_alpha)

return loss


def fit_warp_kos(CSRMatrix item_features,
CSRMatrix user_features,
Expand Down Expand Up @@ -1070,6 +1074,8 @@ def fit_warp_kos(CSRMatrix item_features,
item_alpha,
user_alpha)

return loss


def fit_bpr(CSRMatrix item_features,
CSRMatrix user_features,
Expand Down
Loading