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

SMAP regression error #375

Merged

Conversation

hugoperrin
Copy link
Contributor

@hugoperrin hugoperrin commented Jul 15, 2021

Before submitting

  • Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure to update the docs?
  • Did you write any new necessary tests?

What does this PR do?

This PR adds SMAPE regression metric: #372.

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 🙃

@pep8speaks
Copy link

pep8speaks commented Jul 15, 2021

Hello @hugoperrin! Thanks for updating this PR.

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2021-07-16 13:25:56 UTC

@codecov
Copy link

codecov bot commented Jul 15, 2021

Codecov Report

Merging #375 (7bfed06) into master (a4d2a7a) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #375      +/-   ##
==========================================
+ Coverage   96.42%   96.46%   +0.03%     
==========================================
  Files         112      114       +2     
  Lines        3665     3705      +40     
==========================================
+ Hits         3534     3574      +40     
  Misses        131      131              
Flag Coverage Δ
Linux 76.62% <97.50%> (+0.22%) ⬆️
Windows 76.62% <97.50%> (+0.22%) ⬆️
cpu 96.41% <100.00%> (+0.03%) ⬆️
gpu 96.38% <100.00%> (+0.03%) ⬆️
macOS 96.41% <100.00%> (+0.03%) ⬆️
pytest 96.46% <100.00%> (+0.03%) ⬆️
python3.6 95.57% <100.00%> (+0.04%) ⬆️
python3.8 96.30% <100.00%> (-0.07%) ⬇️
python3.9 ?
torch1.3.1 95.57% <100.00%> (+0.04%) ⬆️
torch1.4.0 ?
torch1.9.0 96.30% <100.00%> (+0.04%) ⬆️

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

Impacted Files Coverage Δ
torchmetrics/__init__.py 100.00% <ø> (ø)
torchmetrics/functional/__init__.py 100.00% <100.00%> (ø)
...ession/symmetric_mean_absolute_percentage_error.py 100.00% <100.00%> (ø)
torchmetrics/regression/__init__.py 100.00% <100.00%> (ø)
...ession/symmetric_mean_absolute_percentage_error.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a4d2a7a...7bfed06. Read the comment docs.

Copy link
Member

@SkafteNicki SkafteNicki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Two things:

  • Remember to add an note in the Changelog file
  • The function that is compared against takes a multioutput argument but the functional/modular implementation of SMAPE does not. Why is that?

@SkafteNicki SkafteNicki linked an issue Jul 15, 2021 that may be closed by this pull request
@Borda Borda added the enhancement New feature or request label Jul 15, 2021
@Borda
Copy link
Member

Borda commented Jul 15, 2021

@hugoperrin mind check last comments from @SkafteNicki, mainly related to references

@Borda Borda changed the title Feat/smape regression error SMAP regression error Jul 15, 2021
@hugoperrin
Copy link
Contributor Author

hugoperrin commented Jul 15, 2021

@Borda I updated the needed docs, I think this should be good, I'll wait on the CI to finish and fix things if things are needed to be fixed then :) Thank you for your quick feedback :)

PS: should I squash the commits by the way?

@Borda
Copy link
Member

Borda commented Jul 16, 2021

PS: should I squash the commits by the way?

no need, well do it with all PR by default: squash + merge

@hugoperrin seems it is your first PR so GH requires to allow running CI by a maintainer, so pls when you see it is hanging, pls ping me in slack so we can speed it up :]

Copy link
Member

@SkafteNicki SkafteNicki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SkafteNicki SkafteNicki enabled auto-merge (squash) July 16, 2021 13:09
@SkafteNicki SkafteNicki merged commit a5af6d8 into Lightning-AI:master Jul 16, 2021
@Borda Borda added this to the v0.5 milestone Aug 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request waiting on author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SMAPE regression error
4 participants