gretapy.pl.ranking#
- gretapy.pl.ranking(df, level='class', palette=None, **kwargs)#
Plot a ranking figure with a barplot of mean F0.1 and a heatmap of rankings.
- Parameters:
df (pandas.DataFrame) – Metrics dataframe with columns: class, task, db, dataset, name, f01.
level (str) –
'class'for summary heatmap at class level (Predictive, Genomic, etc.),'task'for the fine-grained (db, task) heatmap with hierarchical headers.palette (dict or None) – Method name -> color mapping. Uses default palette if None.
**kwargs – Additional arguments passed to
decoupler.Plotter(e.g.figsize,dpi,return_fig,save).figsizedefaults to auto-computed based on data dimensions.dpidefaults to100.
- Returns:
fig : matplotlib.figure.Figure or None