@slow_test
@requires_sklearn_0_15
def test_cov_estimation_on_raw_reg():
 raw = read_raw_fif(raw_fname, preload=True)
 raw.info['sfreq'] /= 10.0
 raw = RawArray(raw._data[:, ::10].copy(), raw.info)
 cov_mne = read_cov(erm_cov_fname)
 with warnings.catch_warnings(record=True):
  warnings.simplefilter('always')
  cov = compute_raw_covariance(raw, tstep=5.0, method='diagonal_fixed')
 assert_snr(cov.data, cov_mne.data, 5)

@ slow_test @ requires_sklearn_0_15 def test_cov_estimation_on_raw_reg ( ) : raw = read_raw_fif ( raw_fname , preload = True ) raw . info [ 'sfreq' ] /= 10.0 raw = RawArray ( raw . _data [ : , : : 10 ] . copy ( ) , raw . info ) cov_mne = read_cov ( erm_cov_fname ) with warnings . catch_warnings ( record = True ) : warnings . simplefilter ( 'always' ) cov = compute_raw_covariance ( raw , tstep = 5.0 , method = 'diagonal_fixed' ) assert_snr ( cov . data , cov_mne . data , 5 )
test estimation from raw with regularization .