e68d1963fee51c78969eb2523e9877a62024fb8a,mne/cov.py,,_regularized_covariance,#Any#Any#Any#Any#Any#,1644

Before Change


        method_params = dict(shrinkage=dict(
            shrinkage=reg, assume_centered=True, store_precision=False))
        reg = "shrinkage"
    elif not isinstance(reg, str):
        raise ValueError("reg must be a float, str, or None, got %s (%s)"
                         % (reg, type(reg)))
    method, method_params = _check_method_params(
        reg, method_params, name="reg", allow_auto=False, rank=rank)
    // use mag instead of eeg here to avoid the cov EEG projection warning
    info = create_info(data.shape[-2], 1000., "mag") if info is None else info

After Change


    cov : ndarray, shape (n_channels, n_channels)
        The covariance matrix.
    
    _validate_type(reg, (str, "numeric", None))
    if reg is None:
        reg = "empirical"
    elif not isinstance(reg, str):
        reg = float(reg)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: mne-tools/mne-python
Commit Name: e68d1963fee51c78969eb2523e9877a62024fb8a
Time: 2020-05-14
Author: larson.eric.d@gmail.com
File Name: mne/cov.py
Class Name:
Method Name: _regularized_covariance


Project Name: mne-tools/mne-python
Commit Name: 7c1233ba612bdb08d640c924ef4220b2fe13fb71
Time: 2020-09-25
Author: larson.eric.d@gmail.com
File Name: mne/io/reference.py
Class Name:
Method Name: add_reference_channels


Project Name: mne-tools/mne-python
Commit Name: 91473147e57464173dedb00ce20f3d5aefd883bd
Time: 2020-10-12
Author: larson.eric.d@gmail.com
File Name: mne/viz/ica.py
Class Name:
Method Name: plot_ica_properties