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

Precision-Recall Curve: switch axes in plot #2161

Closed
mykappa opened this issue Oct 10, 2023 · 1 comment · Fixed by #2183
Closed

Precision-Recall Curve: switch axes in plot #2161

mykappa opened this issue Oct 10, 2023 · 1 comment · Fixed by #2183
Labels
enhancement New feature or request

Comments

@mykappa
Copy link

mykappa commented Oct 10, 2023

🚀 Feature

In the precision-recall curve plot, place recall on the x-axis and precision on the y-axis.

Motivation

In my experience, precision-recall curves with precision on the y-axis (ordinate) and recall on the x-axis (abscissa) are much more common than the other way around (i.e., how the plot is generated at the moment). A quick Google image search confirms this. And it is also the case in the sklearn implementation.

Pitch

Place recall on the x-axis and precision on the y-axis in PrecisionRecallCurve.plot()

Alternatives

Add an option to choose between both variants.

Additional context

Furthermore, an option for plotting the chance value similar to sklearn's plot_chance_level argument would be a welcome addition to the precision-recall curve plot.

@mykappa mykappa added the enhancement New feature or request label Oct 10, 2023
@Yann-CV
Copy link

Yann-CV commented Nov 9, 2023

@SkafteNicki for info this linked to #2200

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants