-
Notifications
You must be signed in to change notification settings - Fork 411
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: typing #330
Refactor: typing #330
Conversation
for more information, see https://pre-commit.ci
…/metrics into refactor/typing
Codecov Report
@@ Coverage Diff @@
## master #330 +/- ##
==========================================
- Coverage 96.59% 96.54% -0.05%
==========================================
Files 111 111
Lines 3552 3559 +7
==========================================
+ Hits 3431 3436 +5
- Misses 121 123 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Hello @Borda! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2021-06-30 07:27:56 UTC |
for more information, see https://pre-commit.ci
…/metrics into refactor/typing
for more information, see https://pre-commit.ci
…/metrics into refactor/typing
@SkafteNicki @justusschock any idea why the differentiability tests are failing? Cannot reproduce it locally 😕 |
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.
Few commets, else LGTM :]
@@ -40,7 +40,7 @@ def _explained_variance_compute( | |||
sum_target: Tensor, | |||
sum_squared_target: Tensor, | |||
multioutput: str = "uniform_average", | |||
) -> Union[Tensor, Sequence[Tensor]]: | |||
) -> Tensor: |
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 does not seem correct to me. Even when setting multioutput='raw_values
it is still a single tensor that is returned
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.
we return the Tensor now or am I missing anything?
Co-authored-by: Nicki Skafte <[email protected]>
Before submitting
What does this PR do?
Fixes # (issue).
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 🙃