-
Notifications
You must be signed in to change notification settings - Fork 3
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
✨♻️ refactor preprocessing #64
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #64 +/- ##
==========================================
+ Coverage 55.47% 56.77% +1.30%
==========================================
Files 21 23 +2
Lines 1325 1409 +84
Branches 237 251 +14
==========================================
+ Hits 735 800 +65
- Misses 550 562 +12
- Partials 40 47 +7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
self, | ||
to_onehot_y: bool = False, | ||
num_classes: int = 2, | ||
gamma: float = 0.75, |
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.
gamma=2.0
from torch.nn.modules.loss import _Loss | ||
|
||
|
||
class AsymmetricUnifiedFocalLoss(_Loss): |
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 should be AsymmetricFocalLoss:
to compute AsymmetricUnifiedFocalLoss we also need the AsymmetricTverskyLoss
What do these changes do?
The PR adds
predict
command, to write metrics in csv file, plot summary confusion matrixRelated issue/s
How to test
Checklist
pytest tests