-
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
Implement MultioutputWrapper #510
Conversation
I'm not sure why the build is failing but it seems to be totally independent of my change & instead has to do with Docker. It looks like it's also failing on #506, so I'm assuming this is not caused by my change? |
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 comments, PR is looking good already :]
- In order to handle cases like `BinnedAveragePrecision`, add `squeeze_outputs` argument which defaults to true and change `compute()`'s return type to a list. - Add two examples to the docs.
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Codecov Report
@@ Coverage Diff @@
## master #510 +/- ##
=====================================
- Coverage 95% 95% -1%
=====================================
Files 132 133 +1
Lines 4660 4717 +57
=====================================
+ Hits 4444 4467 +23
- Misses 216 250 +34 |
@SkafteNicki not exactly sure at what point I move this out of draft mode/whether I am the one supposed to do it. Let me know! |
@an1lam Changed it to review status, to get all test running. |
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.
I am basically fine with the PR as it is, but it would be great to further improve the testing (I doubt it will show any problems as this is just a wrapper around other metrics) :]
Hi @an1lam, please check your examples, they do not seem to render correctly: |
@SkafteNicki good catch, sorry. I fixed them: |
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 :]
GPU test are failing due to this issue: #531 |
@SkafteNicki do you think I should wait until you merge #542 then (and merge |
@an1lam yes that PR should fix the last test that fails here :] |
Before submitting
What does this PR do?
Implements the
MultioutputWrapper
feature described in #508. Summarizing,MultioutputWrapper
takes a base metric and anum_outputs
param and returns a metric that will computeshape[output_dim]
many scalars and return them in a list. The idea is to supportmultioutput
mode for metrics likeSpearmanCorrcoef
that don't support it natively.