lucazav / binclass-tools

The binclass-tools package contains a set of Python wrappers and interactive plots that facilitate the analysis of binary classification problems.

Home Page:https://medium.com/towards-data-science/finding-the-best-classification-threshold-for-imbalanced-classifications-with-interactive-plots-7d65828dda38

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Return the plots

DaoFof opened this issue · comments

I would like to have the plots returned when I call the plot functions

def curve_PR_plot(true_y, predicted_proba, beta = 1, title = "Precision Recall Curve", show_display_modebar = True): .... return area_under_pr_curve, full_fig

area_under_PR, plot = bc.curve_PR_plot(true_y=y_true, predicted_proba=proba, beta=1.5)

@DaoFof we're working on this. We'll add this feature in the next release

@DaoFof with the new release, version 1.0.0, every graphical function now returns the figure objects as the first outputs