tabensemb.trainer.Trainer.plot_presence_ratio#
method
- Trainer.plot_presence_ratio(order='ratio', ax=None, clr: Iterable | None = None, figure_kwargs: Dict | None = None, barplot_kwargs: Dict | None = None, legend_kwargs: Dict | None = None, savefig_kwargs: Dict | None = None, save_show_close: bool = True) Axes[source]#
Plot the ratio of presence of each feature.
- Parameters:
- order
“ratio” or “type”. If is “ratio”, the labels will be sorted by the presence ratio. If is “type”, the labels will be sorted first by their feature types defined in the configuration, and then sorted by the presence ratio.
- ax
matplotlib.axes.Axes- clr
A seaborn color palette or an Iterable of colors. For example seaborn.color_palette(“deep”).
- figure_kwargs
Arguments for
plt.figure.- barplot_kwargs
Arguments for
seaborn.barplot- legend_kwargs
Arguments for
plt.legend- savefig_kwargs
Arguments for
plt.savefig- save_show_close
Whether to save, show (in the notebook), and close the figure if
axis not given.
- Returns:
- matplotlib.axes.Axes