Skip to content
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

fix: update f1 score to not consider Label.Unclear as unlabeled matches #171

Merged
merged 2 commits into from
Oct 26, 2023

Conversation

spiffcs
Copy link
Contributor

@spiffcs spiffcs commented Oct 25, 2023

No description provided.

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
wagoodman
wagoodman previously approved these changes Oct 26, 2023
@wagoodman wagoodman dismissed their stale review October 26, 2023 12:15

Can you add a test that reflects the change?

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
@@ -195,7 +195,7 @@ def test_comparison_against_labels_indeterminate():
m3_indeterminate = [
artifact.LabelEntry(
label=artifact.Label.Unclear,
vulnerability_id="CVE-2021-2222",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note: this was changed so that it would now match against a vulnerability_id in the fixture. This test is effective since it shows the f1 score going up based on the change of Unclear being removed while also decreasing the amount of indeterminate found in the summary

@spiffcs
Copy link
Contributor Author

spiffcs commented Oct 26, 2023

Waiting for quality gate to pass before merging new changes

@spiffcs spiffcs removed the blocked label Oct 26, 2023
@spiffcs spiffcs merged commit 95ea523 into main Oct 26, 2023
2 checks passed
@spiffcs spiffcs deleted the remove-uncertain-label-from-unlabeled-gate branch October 26, 2023 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants