Skip to content
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

Added focal loss #696

Merged
merged 18 commits into from
Jul 25, 2023
Merged

Added focal loss #696

merged 18 commits into from
Jul 25, 2023

Conversation

sarthakpati
Copy link
Collaborator

@sarthakpati sarthakpati commented Jul 25, 2023

Fixes #695

Proposed Changes

  • added focal loss and a hybrid focal loss with dice
  • comment structure standardized on more files
  • examples added

Checklist

  • I have read the CONTRIBUTING guide.
  • My PR is based from the current GaNDLF master .
  • Non-breaking change (does not break existing functionality): provide as many details as possible for any breaking change.
  • Function/class source code documentation added/updated.
  • Code has been blacked for style consistency.
  • If applicable, version information has been updated in GANDLF/version.py.
  • If adding a git submodule, add to list of exceptions for black styling in pyproject.toml file.
  • Usage documentation has been updated, if appropriate.
  • Tests added or modified to cover the changes; if coverage is reduced, please give explanation.
  • If customized dependency installation is required (i.e., a separate pip install step is needed for PR to be functional), please ensure it is reflected in all the files that control the CI, namely: python-test.yml, and all docker files [1,2,3].

@sarthakpati sarthakpati linked an issue Jul 25, 2023 that may be closed by this pull request
@sarthakpati sarthakpati marked this pull request as draft July 25, 2023 01:08
@github-actions
Copy link
Contributor

github-actions bot commented Jul 25, 2023

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

@codecov
Copy link

codecov bot commented Jul 25, 2023

Codecov Report

Merging #696 (cb6294a) into master (7fe43db) will increase coverage by 0.02%.
Report is 3 commits behind head on master.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #696      +/-   ##
==========================================
+ Coverage   94.67%   94.69%   +0.02%     
==========================================
  Files         117      117              
  Lines        8162     8200      +38     
==========================================
+ Hits         7727     7765      +38     
  Misses        435      435              
Flag Coverage Δ
unittests 94.69% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
GANDLF/compute/loss_and_metric.py 98.30% <100.00%> (ø)
GANDLF/losses/__init__.py 100.00% <100.00%> (ø)
GANDLF/losses/hybrid.py 100.00% <100.00%> (ø)
GANDLF/losses/segmentation.py 98.70% <100.00%> (+0.55%) ⬆️
GANDLF/parseConfig.py 84.78% <100.00%> (+0.25%) ⬆️
testing/test_full.py 99.16% <100.00%> (+<0.01%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sarthakpati sarthakpati marked this pull request as ready for review July 25, 2023 20:28
@Geeks-Sid Geeks-Sid merged commit d1fc9e2 into master Jul 25, 2023
17 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jul 25, 2023
@sarthakpati sarthakpati deleted the 695-add-focal-loss branch July 25, 2023 23:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add focal loss
2 participants