Skip to content

Conversation

@Craigacp
Copy link
Member

Description

The multilabel evaluation package swapped the FPs for FNs when accessing them, causing many of the metrics to be permuted incorrectly producing incorrect values for precisions, recalls and the evaluation.toString().

Motivation

It's best if the evaluations report the right numbers in the right places.

@Craigacp Craigacp added the Oracle employee This PR is from an Oracle employee label Aug 31, 2021
Copy link
Member

@pogren pogren left a comment

Choose a reason for hiding this comment

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

It looks like the class-level javadoc comments for MultiLabelConfusionMatrix still have the indices backwards.

@Craigacp
Copy link
Member Author

Craigacp commented Sep 2, 2021

It looks like the class-level javadoc comments for MultiLabelConfusionMatrix still have the indices backwards.

Fixed, thanks.

@Craigacp Craigacp added the squash-commits Squash the commits when merging this PR label Sep 3, 2021
Copy link
Member

@pogren pogren left a comment

Choose a reason for hiding this comment

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

This is a straightfoward bug fix that corrects the indices used for retrieving FPs and FNs from the underlying matrix used in MultiLabelConfusionMatrix (i.e. the "fp" and "fn" methods). Now the values used match the way the data is entered in the tabulate method. The only other changes are minor javadoc edits and fixing the assertion values in the unit test.

@Craigacp Craigacp merged commit 1297785 into main Sep 7, 2021
@Craigacp Craigacp deleted the multilabel-eval-fixes branch September 7, 2021 21:54
Craigacp added a commit that referenced this pull request Oct 1, 2021
* Fixing a bug where MultiLabelConfusionMatrix swapped FP for FN.

* Fixing the class level javadoc for MultiLabelConfusionMatrix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Oracle employee This PR is from an Oracle employee squash-commits Squash the commits when merging this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants