decoupler.plot_metrics_scatter_cols
- decoupler.plot_metrics_scatter_cols(df, col, x='auroc', y='auprc', groupby=None, n_cols=4, figsize=(10, 12), dpi=100, return_fig=False, save=None)
Extension of the function plot_metrics_scatter to group metrics by two categories at the same time.
- Parameters:
- dfDataFrame
Performance metrics per method, obtained by running run_benchmark.
- colstr
Name of the group column to group by. Each of its categories will become a subplot.
- xstr
Name of the metric to plot in the x axis.
- ystr
Name of the metric to plot in the y axis.
- groupbystr
Name of the group column to additionaly group by. Each of its categories will appear in the legend.
- n_colsint
Number of columns per row.
- figsizetuple
Figure size.
- dpiint
DPI resolution of figure.
- return_figbool
Whether to return a Figure object or not.
- savestr, None
Path to where to save the plot. Infer the filetype if ending on {
.pdf
,.png
,.svg
}.
- Returns:
- figFigure, None
If return_fig, returns Figure object.