-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 type hints for dropout, dropout parameter references, and add docs for FCLayer and FCStack. #2061
Conversation
It's not super clear to me why in some cases we are renaming parameters from dropout to recurrent dropout and in some cases we are dropping them altogether (no pun intended). Can you give a bit more context @justinxzhao ? |
The changes in this PR is mainly to make the use of separate dropout parameters, where there are already multiple dropout parameters in the constructor, consistent across all Ludwig modules. New consistency in this PR:
As for removing On a side note, I wonder if it's reasonable to simplify/consolidate all of the different dropout parameters into a more global |
@justinxzhao got it, make sense. A side note: in all these cases, dropout is the one used in embeddings, while other modules have their own. It could be better to rename it to |
87a780d
to
5595e84
Compare
I'll defer to #1924 to add type hints everywhere. Perhaps once we have schemas checked-in, we can use them to automatically generate docstrings from them and do a grand substitution/update everywhere. Fixed
I'll leave it as I'm beginning to lean towards consolidating all of the per-module dropout parameters into a single parameter (filed #2080 to track) unless we see strong evidence that dramatically different dropouts results in significantly performance gains. Perhaps we can continue the discussion on that issue, and make that change later. |
5595e84
to
fc7a9c0
Compare
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.
LGTM! Left a comment re: dropout here: #2080
No description provided.