-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add loss value metric based on optimal performance definition #66
Conversation
Failing tests seem unrelated, but do you have an idea? |
Linter fixed in main branch. |
No, but I figured it wasn't on my branch indeed. Ill take another look! |
The other tests are still failing. I think tf-keras needs to be a req for ASReview. But more importantly, why is it importing transformers when running our tests... |
ccaafb7
to
11589a6
Compare
Tests are failing because of something fixed in #67 . Consider merging 67 and merging main into this branch to get the tests functional again. |
Oke, remove the draft status of that pr. |
This PR needs a test and documentation. I'm not convinced this loss metric computes what's described in the PR description. The following tests both fail: def test_metric_loss_best():
labels_best = [1, 1, 1, 0]
loss = _loss(labels_best)
assert_almost_equal(loss, 0)
def test_metric_loss_worst():
labels_worst = [0, 0, 1, 1]
loss = _loss(labels_worst)
assert_almost_equal(loss, 1) |
Yeah you're right. the calculation was okay, but it wasn't normalized. Here's the new approach: |
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.
Thanks for the update. Looks like a good step forward.
I'm also interesting in adding this metric to asreview/asreview. This can be nice for the CLI simulation interface. Are you interested in contributing a copy there?
Co-authored-by: Jonathan de Bruin <[email protected]>
Co-authored-by: Jonathan de Bruin <[email protected]>
Co-authored-by: Jonathan de Bruin <[email protected]>
Thanks for this contribution to the performance metrics! |
A loss metric value based on the distance between the perfect recall curve and the actual recall curve.