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

[FLINK-32889] Fix calcuation of weighted areaUnderROC and areaUnderPRC in BinaryClassificationEvaluator #252

Merged
merged 5 commits into from
Aug 24, 2023

Conversation

Fanoid
Copy link
Contributor

@Fanoid Fanoid commented Aug 18, 2023

What is the purpose of the change

Right now, BinaryClassificationEvaluator gives wrong areaUnderROC (auROC) and areaUnderPRC (auPRC) values when a weight column provided. This PR provides fix for their calculation.

Brief change log

  • Correct the expected values in the weighted case in BinaryClassificationEvaluatorTest.
  • Correct the calculation of weighted auROC and auPRC.

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (yes / no) no
  • The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no) no

Documentation

  • Does this pull request introduce a new feature? (yes / no) no
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented) not applicable

@Fanoid
Copy link
Contributor Author

Fanoid commented Aug 18, 2023

@weibozhao Could you help review this PR?

@weibozhao
Copy link
Contributor

weibozhao commented Aug 21, 2023

@weibozhao Could you help review this PR?

Thanks for the PR. I left some comments above.

@Fanoid
Copy link
Contributor Author

Fanoid commented Aug 22, 2023

@weibozhao Thanks for your comments. Would you please take another look?

@weibozhao
Copy link
Contributor

Thanks for the update. LGTM overall.

@Fanoid
Copy link
Contributor Author

Fanoid commented Aug 24, 2023

hi, @zhipeng93 would you take an look on this PR?

@zhipeng93
Copy link
Contributor

Thanks for the PR. LGTM.

@zhipeng93 zhipeng93 merged commit 5619c3b into apache:master Aug 24, 2023
@Fanoid Fanoid deleted the FLINK-32889 branch August 30, 2023 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants