-
Notifications
You must be signed in to change notification settings - Fork 152
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
Adding example for custom DataLoader to tutorial 18 #1256
Conversation
Great, thanks! Can you make this edit in tutorial and mention the use case with a large dataset, i.e., how this control over the training loop solve the problem with high-D data? Thanks! 🙏 |
Yes, will do. So I don't need to clean the notebook before committing it? |
- fix import statements - removed plots - added section to illustrate how to use a custom DataLoader
@janfb here is the notebook in question. I removed the plots for the time being. Let me know if I should regenerate them. |
ready for review. |
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.
Good catch, thanks Peter! Jan, any ideas why this was not caught by our tests that run the notebooks?
I had a quick look and, yikes, there was a testing leftover that restricted the tests to tutorial 05. 🤦♂️ I will make a PR. Thanks for leading us to this @psteinb 😃 |
Let's make a new release after this PR to update the website? |
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.
Great, thanks a lot @psteinb
Added a couple of comments and suggestions.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1256 +/- ##
==========================================
- Coverage 86.05% 78.31% -7.75%
==========================================
Files 118 119 +1
Lines 8672 8697 +25
==========================================
- Hits 7463 6811 -652
- Misses 1209 1886 +677
Flags with carried forward coverage won't be shown. Click here to find out more. |
Awesome, thanks a lot @psteinb for adding this! 🎉 |
What does this implement/fix? Explain your changes
I was happy to see the recent exposure of more control for the training loop. As discussed with @janfb, I added a small example on how rewrite the training loop to exploit such a
DataLoader
.Does this close any currently open issues?
I didn't create an issue for this.
Any relevant code examples, logs, error output, etc?
I basically added a section which documents this:
Any other comments?
Can you please let me know, how to clean a notebook before I commit it? I recall from the hackathon, that there were a couple of steps for this. But maybe I am mistkane.
Checklist
Put an
x
in the boxes that apply. You can also fill these out after creatingthe PR. If you're unsure about any of them, don't hesitate to ask. We're here to
help! This is simply a reminder of what we are going to look for before merging
your code.
guidelines
[] I have commented my code, particularly in hard-to-understand areas[ ] I have added tests that prove my fix is effective or that my feature works[ ] I have reported how long the new tests run and potentially marked themwith
pytest.mark.slow
.[ ] New and existing unit tests pass locally with my changesguidelines
main
(or there are no conflicts withmain
)