mofaflex.pl.all_weights

Contents

mofaflex.pl.all_weights#

mofaflex.pl.all_weights(model, views=None, clip=(-1, 1), show_featurenames=False, figsize=None)#

Plot the weight matrices.

Parameters:
  • model (MofaFlex | MOFAFLEX) – The term to plot the weights for. Can also be a MOFAFLEX object if it has only one term.

  • views (str | Sequence[str] | None (default: None)) – The views to consider in the ranking. If None, plot all views.

  • clip (tuple[float, float] | None (default: (-1, 1))) – Weight value range to clip to.

  • show_featurenames (bool (default: False)) – Whether to show the feature names on the Y axis.

  • figsize (tuple[float, float] | None (default: None)) – Figure size in inches.

Return type:

plotnine.ggplot