def test_run_ica(): """Test run_ica function""" params = [] params += [(None, -1, slice(2), [0, 1])] # varicance, kurtosis idx params params += [(None, 'MEG 1531')] # ECG / EOG channel params for idx, ch_name in product(*params): run_ica(raw, n_components=.9, start=0, stop=100, start_find=0, stop_find=50, ecg_channel=ch_name, eog_channel=ch_name, skew_idx=idx, var_idx=idx, kurt_idx=idx)
def test_run_ica(): """Test run_ica function""" raw = io.Raw(raw_fname, preload=True).crop(0, stop, False).crop(1.5) params = [] params += [(None, -1, slice(2), [0, 1])] # varicance, kurtosis idx params += [(None, 'MEG 1531')] # ECG / EOG channel params for idx, ch_name in product(*params): run_ica(raw, n_components=2, start=0, stop=6, start_find=0, stop_find=5, ecg_ch=ch_name, eog_ch=ch_name, skew_criterion=idx, var_criterion=idx, kurt_criterion=idx)
def test_run_ica(): """Test run_ica function.""" raw = read_raw_fif(raw_fname).crop(1.5, stop).load_data() params = [] params += [(None, -1, slice(2), [0, 1])] # varicance, kurtosis idx params += [(None, 'MEG 1531')] # ECG / EOG channel params for idx, ch_name in product(*params): run_ica(raw, n_components=2, start=0, stop=0.5, start_find=0, stop_find=5, ecg_ch=ch_name, eog_ch=ch_name, skew_criterion=idx, var_criterion=idx, kurt_criterion=idx)
def test_run_ica(): """Test run_ica function""" raw = fiff.Raw(raw_fname, preload=True).crop(0, stop, False).crop(1.5) params = [] params += [(None, -1, slice(2), [0, 1])] # varicance, kurtosis idx params += [(None, 'MEG 1531')] # ECG / EOG channel params for idx, ch_name in product(*params): run_ica(raw, n_components=2, start=0, stop=6, start_find=0, stop_find=5, ecg_ch=ch_name, eog_ch=ch_name, skew_criterion=idx, var_criterion=idx, kurt_criterion=idx)
def test_run_ica(method): """Test run_ica function.""" _skip_check_picard(method) raw = read_raw_fif(raw_fname).crop(1.5, stop).load_data() params = [] params += [(None, -1, slice(2), [0, 1])] # varicance, kurtosis idx params += [(None, 'MEG 1531')] # ECG / EOG channel params for idx, ch_name in product(*params): run_ica(raw, n_components=2, start=0, stop=0.5, start_find=0, stop_find=5, ecg_ch=ch_name, eog_ch=ch_name, method=method, skew_criterion=idx, var_criterion=idx, kurt_criterion=idx)
def test_run_ica(): """Test run_ica function.""" raw = read_raw_fif(raw_fname).crop(1.5, stop).load_data() params = [] params += [(None, -1, slice(2), [0, 1])] # varicance, kurtosis idx params += [(None, 'MEG 1531')] # ECG / EOG channel params for idx, ch_name in product(*params): warnings.simplefilter('always') with warnings.catch_warnings(record=True): run_ica(raw, n_components=2, start=0, stop=6, start_find=0, stop_find=5, ecg_ch=ch_name, eog_ch=ch_name, skew_criterion=idx, var_criterion=idx, kurt_criterion=idx)
def test_run_ica(): """Test run_ica function""" raw = Raw(raw_fname, preload=True).crop(1.5, stop, copy=False) params = [] params += [(None, -1, slice(2), [0, 1])] # varicance, kurtosis idx params += [(None, 'MEG 1531')] # ECG / EOG channel params for idx, ch_name in product(*params): warnings.simplefilter('always') with warnings.catch_warnings(record=True): run_ica(raw, n_components=2, start=0, stop=6, start_find=0, stop_find=5, ecg_ch=ch_name, eog_ch=ch_name, skew_criterion=idx, var_criterion=idx, kurt_criterion=idx)
def test_run_ica(): """Test run_ica function""" params = [] params += [(None, -1, slice(2), [0, 1])] # varicance, kurtosis idx params += [(None, 'MEG 1531')] # ECG / EOG channel params for idx, ch_name in product(*params): run_ica(raw, n_components=.9, start=0, stop=100, start_find=0, stop_find=50, ecg_ch=ch_name, eog_ch=ch_name, skew_criterion=idx, var_criterion=idx, kurt_criterion=idx)