Dreams
Dreams

Reputation: 6122

python - Plot Precision Recall Curve for different multi-class classifiers

I have predicted output for validation data which is single label multi-class classifier. I have run multiple classifiers. I want to plot the PR curves for each of them in a single plot. I am not able to do that. Any pointers?

For a single classifier, the dataframe with results look like this : 

label   predictedAns    predictedProb
1       2                 0.999281
2       2                 0.999754
2       2                 0.999754
3       3                 0.999762
2       2                 0.999641
2       2                 0.999641
2       2                 0.9996

Upvotes: 2

Views: 1828

Answers (1)

null
null

Reputation: 2137

You can seperately calculate metrics you want to observe for different cutoffs, and then refer to this page later on. Plotly comes with handy notebook integration, as interactive plots. You can add different lines with "add_trace" method which you can find it on the page, and observe all of them in a single interactive plot.

Upvotes: 1

Related Questions