structboost.plot_top_boosting_coefficients

structboost.plot_top_boosting_coefficients(betamat, gene_names, cluster_labels, *, top_m=10, neg_color='#1f77b4', pos_color='#d62728')[source]

Plot per-target dot/lollipop charts of top boosting coefficients.

Parameters:
  • betamat (ndarray) – Array of shape (n_targets, n_features) with boosting coefficients.

  • gene_names (Sequence[str]) – Feature names of length n_features (e.g., gene symbols).

  • cluster_labels (Sequence[str]) – Target labels of length n_targets (e.g., cluster IDs).

  • top_m (int) – Number of features to display per target (ranked by |beta|).

  • neg_color (str) – Colors used for negative and positive coefficients, respectively.

  • pos_color (str) – Colors used for negative and positive coefficients, respectively.

Returns:

  • figs – List of matplotlib Figure objects, one per target.

  • axes – List of matplotlib Axes objects, one per target.