decoupler.bm.pl.fscore#

decoupler.bm.pl.fscore(df, hue=None, palette='tab20', **kwargs)#

Plot precision and recall as scatterplot.

x-axis represent the recall of correctly predicted sources after filtering by significance. The higher value the better performance is.

x-axis represent the precision of correctly predicted sources after filtering by significance. The higher value the better performance is.

Parameters:
df DataFrame

Result of decoupler.bm.benchmark.

hue str | None (default: None)

Grouping variable that will produce different colors.

palette str (default: 'tab20')

Method for choosing the colors to use

ax

An existing matplotlib.axes._axes.Axes instance to plot on. If None, a new figure and axes will be created.

figsize

Size of the figure in inches as (width, height).

dpi

Dots per inch for the figure resolution.

return_fig

If True, plotting methods should return the figure object instead of showing it.

save

If set, path to save the plot automatically to a file.

Return type:

None | Figure

Returns:

If return_fig=True, returns matplotlib.figure.Figure instance.