mne_denoise.viz.plot_guided_asr_weights#

mne_denoise.viz.plot_guided_asr_weights(estimator, *, title: str | None = None, ax=None, show: bool = True, fname: str | None = None)[source]#

Plot experimental GuidedASR soft weights by window and component.

Parameters:
  • estimator (GuidedASR) – A fitted estimator that has run transform and whose diagnostics_ contains soft_weights.

  • title (str | None, default=None) – Custom figure title.

  • ax (matplotlib.axes.Axes | None, default=None) – Axes to plot into. If None, create a themed figure.

  • show (bool, default=True) – Whether to call plt.show().

  • fname (str | None, default=None) – Optional output path.

Returns:

  • fig (matplotlib.figure.Figure) – Figure containing the heatmap.

  • ax (matplotlib.axes.Axes) – Axes containing the heatmap.

Notes

GuidedASR is an unpublished, unvalidated research prototype. This plot is a diagnostic aid and does not establish that the selected weights separate neural activity from artifacts correctly.