Skip to content

Commit

Permalink
Update recom_ncf_base.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tqtg authored Oct 23, 2023
1 parent ebce517 commit 268d907
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cornac/models/ncf/recom_ncf_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ def _fit_tf(self):
batch_users, batch_items, batch_ratings
),
)
count += len(batch_ratings)
sum_loss += _loss * len(batch_ratings)
count += 1
sum_loss += _loss
if i % 10 == 0:
loop.set_postfix(loss=(sum_loss / count))

Expand Down

0 comments on commit 268d907

Please sign in to comment.