-
Notifications
You must be signed in to change notification settings - Fork 212
Conversation
|
||
.. doctest:: | ||
|
||
>>> datamodule = DataModule(train_input, sampler=WeightedRandomSampler([0.1, 0.5], 2), batch_size=1) |
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.
so this is the alternative for CrossEntropyLoss weights?
Codecov Report
@@ Coverage Diff @@
## master #1204 +/- ##
==========================================
- Coverage 90.96% 82.74% -8.22%
==========================================
Files 284 284
Lines 12689 12691 +2
==========================================
- Hits 11542 10501 -1041
- Misses 1147 2190 +1043
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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, thanks! Just minor nit (whitespace).
Co-authored-by: Kushashwa Ravi Shrimali <kushashwaravishrimali@gmail.com>
Co-authored-by: Kushashwa Ravi Shrimali <kushashwaravishrimali@gmail.com>
Co-authored-by: Kushashwa Ravi Shrimali <kushashwaravishrimali@gmail.com>
What does this PR do?
Fixes #1197
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃