MCPcopy
hub / github.com/mne-tools/mne-python / plot_regression_weights

Function plot_regression_weights

mne/viz/topomap.py:4052–4213  ·  view source on GitHub ↗

Plot the regression weights of a fitted EOGRegression model. Parameters ---------- model : EOGRegression The fitted EOGRegression model whose weights will be plotted. %(ch_type_topomap)s %(sensors_topomap)s %(show_names_topomap)s %(mask_topomap)s %(mask_param

(
    model,
    *,
    ch_type=None,
    sensors=True,
    show_names=False,
    mask=None,
    mask_params=None,
    contours=6,
    outlines="head",
    sphere=None,
    image_interp=_INTERPOLATION_DEFAULT,
    extrapolate=_EXTRAPOLATE_DEFAULT,
    border=_BORDER_DEFAULT,
    res=64,
    size=1,
    cmap=None,
    vlim=(None, None),
    cnorm=None,
    axes=None,
    colorbar=True,
    cbar_fmt="%1.1e",
    title=None,
    show=True,
)

Source from the content-addressed store, hash-verified

4050
4051@fill_doc
4052def plot_regression_weights(
4053 model,
4054 *,
4055 ch_type=None,
4056 sensors=True,
4057 show_names=False,
4058 mask=None,
4059 mask_params=None,
4060 contours=6,
4061 outlines="head",
4062 sphere=None,
4063 image_interp=_INTERPOLATION_DEFAULT,
4064 extrapolate=_EXTRAPOLATE_DEFAULT,
4065 border=_BORDER_DEFAULT,
4066 res=64,
4067 size=1,
4068 cmap=None,
4069 vlim=(None, None),
4070 cnorm=None,
4071 axes=None,
4072 colorbar=True,
4073 cbar_fmt="%1.1e",
4074 title=None,
4075 show=True,
4076):
4077 """Plot the regression weights of a fitted EOGRegression model.
4078
4079 Parameters
4080 ----------
4081 model : EOGRegression
4082 The fitted EOGRegression model whose weights will be plotted.
4083 %(ch_type_topomap)s
4084 %(sensors_topomap)s
4085 %(show_names_topomap)s
4086 %(mask_topomap)s
4087 %(mask_params_topomap)s
4088 %(contours_topomap)s
4089 %(outlines_topomap)s
4090 %(sphere_topomap_auto)s
4091 %(image_interp_topomap)s
4092 %(extrapolate_topomap)s
4093
4094 .. versionchanged:: 0.21
4095
4096 - The default was changed to ``'local'`` for MEG sensors.
4097 - ``'local'`` was changed to use a convex hull mask
4098 - ``'head'`` was changed to extrapolate out to the clipping circle.
4099 %(border_topomap)s
4100
4101 .. versionadded:: 0.20
4102 %(res_topomap)s
4103 %(size_topomap)s
4104 %(cmap_topomap)s
4105 %(vlim_plot_topomap)s
4106 %(cnorm)s
4107 %(axes_evoked_plot_topomap)s
4108 %(colorbar_topomap)s
4109 %(cbar_fmt_topomap)s

Callers 1

plotMethod · 0.85

Calls 11

_check_sphereFunction · 0.85
_picks_to_idxFunction · 0.85
pick_infoFunction · 0.85
_prepare_topomap_plotFunction · 0.85
_make_head_outlinesFunction · 0.85
_merge_ch_dataFunction · 0.85
nextFunction · 0.85
_prepare_sensor_namesFunction · 0.85
_plot_topomap_multi_cbarFunction · 0.85
plt_showFunction · 0.85
get_channel_typesMethod · 0.80

Tested by

no test coverage detected