Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Updated precision_recall_curve.py #2490
Updated precision_recall_curve.py #2490
Changes from all commits
d01467a
c5e2757
0ce730f
dc884ec
d0f52e4
0c60883
6034269
52de161
36544bc
a6a8996
2d45c21
57439fd
96de71a
19b568d
74cb48b
89a69e9
777ec91
8ac2ecf
a81cc31
7fbc0c9
95d8deb
9d118c4
6855a92
810d0f3
203b9a1
ca9f0a4
74aa143
83b599c
743c752
e004667
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
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.
Fixing it soon.
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.
Tensor creation should be done with
torch.tensor
and nottorch.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.
Okay, will change it.
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 test case does not use rank and each process generates some random preds and true values per distributed process.
PrecisionRecallCurve
implementation should gather all data from all processes but it is checked against local process computation:I would assume this to fail but looks like it is passing. @sayantan1410 can you check why it is so ?
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.
Yeah sur will check it !!
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.
Actually the error comes from the following test which seems wrong (and need a fix too)
ignite/tests/ignite/contrib/metrics/regression/test_median_absolute_error.py
Line 152 in 90d79aa
@sayantan1410 Have a look to this correct implementation
ignite/tests/ignite/contrib/metrics/regression/test_mean_error.py
Line 139 in 90d79aa
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.
@sdesrozis Will check it soon !!
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.
@sdesrozis A small question,
ignite/tests/ignite/contrib/metrics/regression/test_mean_error.py
Line 139 in 90d79aa
Here, also we don't have something like idist.all_gather so how is the data getting gathered from all the processes ?