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
Fix to save the state of FTRL models #1912
Changes from 14 commits
5783622
07a7e04
9430ede
9fba67d
83633b8
d31cef3
49bccd5
12f6a84
2591f6b
7540eca
048c0f7
a8bc3a5
b19a82e
c13457d
14ae4ae
39512b8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -565,6 +565,7 @@ struct vw | |
bool adaptive; // Should I use adaptive individual learning rates? | ||
bool normalized_updates; // Should every feature be normalized | ||
bool invariant_updates; // Should we use importance aware/safe updates | ||
uint32_t ftrl_size; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could we pass this as an argument to save_load instead? That seems more elegant than sticking it in the global data structure. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oops, I merged. Should I revert, or do you want to do a separate pull request? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Found the bug, not sure what best way to fix it, see mail |
||
uint64_t random_seed; | ||
uint64_t random_state; // per instance random_state | ||
bool random_weights; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are pistol and coin still in known failure?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. As I write above, the data structure is saved correctly, but the weights seem to be different if trained continuously or trained, saved, resumed. The difference does not happen immediately, but after some samples. This is why I suspect numerical issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This violates my understanding of computers so I suspect there is something that we're missing. I probably won't be able to debug before the next release, but it should get done...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am trying to debug this issue a bit more