Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return the loss value after each training round #275

Closed
wants to merge 3 commits into from
Closed

Return the loss value after each training round #275

wants to merge 3 commits into from

Conversation

dakl
Copy link

@dakl dakl commented Mar 16, 2018

Hello,

Me and @corvuscrypto implemented a way to store the loss value in the model.

Is this interesting to you?

cheers

@dakl
Copy link
Author

dakl commented Mar 16, 2018

We can update the c files if this is interesting to you.

Copy link
Collaborator

@maciejkula maciejkula left a comment

Choose a reason for hiding this comment

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

Currently you are getting the loss of the last processed example, which is not really what you want.

This is a little bit more complicated. Firstly, you'll need to accumulate the loss. Secondly, in parallel mode the fitting loops are executed in parallel. You will therefore need to accumulate losses separately in each thread and sum on loop completion.

Is that something you'd like to tackle? I am pretty sure this is not worth the effort.

@@ -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!

@dakl
Copy link
Author

dakl commented Mar 17, 2018

Haha, that's my misunderstanding! Let's kill this PR with fire then :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants