Implementation of the SPoC spatial filtering. Source Power Comodulation (SPoC) :footcite:`DahneEtAl2014` allows to extract spatial filters and patterns by using a target (continuous) variable in the decomposition process in order to give preference to components whose power correlat
| 678 | |
| 679 | @fill_doc |
| 680 | class SPoC(CSP): |
| 681 | """Implementation of the SPoC spatial filtering. |
| 682 | |
| 683 | Source Power Comodulation (SPoC) :footcite:`DahneEtAl2014` allows to |
| 684 | extract spatial filters and |
| 685 | patterns by using a target (continuous) variable in the decomposition |
| 686 | process in order to give preference to components whose power correlates |
| 687 | with the target variable. |
| 688 | |
| 689 | SPoC can be seen as an extension of the CSP driven by a continuous |
| 690 | variable rather than a discrete variable. Typical applications include |
| 691 | extraction of motor patterns using EMG power or audio patterns using sound |
| 692 | envelope. |
| 693 | |
| 694 | Parameters |
| 695 | ---------- |
| 696 | n_components : int |
| 697 | The number of components to decompose M/EEG signals. |
| 698 | reg : float | str | None (default None) |
| 699 | If not None (same as ``'empirical'``, default), allow |
| 700 | regularization for covariance estimation. |
| 701 | If float, shrinkage is used (0 <= shrinkage <= 1). |
| 702 | For str options, ``reg`` will be passed to ``method`` to |
| 703 | :func:`mne.compute_covariance`. |
| 704 | log : None | bool (default None) |
| 705 | If transform_into == 'average_power' and log is None or True, then |
| 706 | applies a log transform to standardize the features, else the features |
| 707 | are z-scored. If transform_into == 'csp_space', then log must be None. |
| 708 | transform_into : {'average_power', 'csp_space'} |
| 709 | If 'average_power' then self.transform will return the average power of |
| 710 | each spatial filter. If 'csp_space' self.transform will return the data |
| 711 | in CSP space. Defaults to 'average_power'. |
| 712 | cov_method_params : dict | None |
| 713 | Parameters to pass to :func:`mne.compute_covariance`. |
| 714 | |
| 715 | .. versionadded:: 0.16 |
| 716 | restr_type : "restricting" | "whitening" | None |
| 717 | Restricting transformation for covariance matrices before performing |
| 718 | generalized eigendecomposition. |
| 719 | If "restricting" only restriction to the principal subspace of signal_cov |
| 720 | will be performed. |
| 721 | If "whitening", covariance matrices will be additionally rescaled according |
| 722 | to the whitening for the signal_cov. |
| 723 | If None, no restriction will be applied. Defaults to None. |
| 724 | |
| 725 | .. versionadded:: 1.11 |
| 726 | info : mne.Info | None |
| 727 | The mne.Info object with information about the sensors and methods of |
| 728 | measurement used for covariance estimation and generalized |
| 729 | eigendecomposition. |
| 730 | If None, one channel type and no projections will be assumed and if |
| 731 | rank is dict, it will be sum of ranks per channel type. |
| 732 | Defaults to None. |
| 733 | |
| 734 | .. versionadded:: 1.11 |
| 735 | %(rank_none)s |
| 736 | |
| 737 | .. versionadded:: 0.17 |
no outgoing calls