[ ]:
import matplotlib.pyplot as plt
import numpy as np
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis
from sklearn.model_selection import ShuffleSplit, cross_val_score
from sklearn.pipeline import Pipeline
from mne import Epochs, pick_types
from mne.channels import make_standard_montage
from mne.datasets import eegbci
from mne.decoding import CSP
from mne.io import concatenate_raws, read_raw_edf
from mne.preprocessing import ICA
print(__doc__)
# #############################################################################
# # Set parameters and read data
# avoid classification of evoked responses by using epochs that start 1s after
# cue onset.
tmin, tmax = -1.0, 4.0
runs = [6, 10, 14] # motor imagery: hands vs feet
input_data_shape = (64, 801)
data_array, labels, groups = [], [], []
for subject in range(1, 110):
raw_fnames = eegbci.load_data(subject, runs, verbose=False)
raw = concatenate_raws([read_raw_edf(f, preload=True, verbose=0) for f in raw_fnames])
bads = raw.info["bads"]
if bads != []:
continue
eegbci.standardize(raw) # set channel names
montage = make_standard_montage("standard_1005")
raw.set_montage(montage)
raw.annotations.rename(dict(T1="hands", T2="feet"))
raw.set_eeg_reference(projection=True, verbose=0)
# Apply band-pass filter
raw.filter(1.0, 60.0, fir_design="firwin", skip_by_annotation="edge", verbose=0)
# set up and fit the ICA
ica = ICA(n_components=20, random_state=97, max_iter=800)
ica.fit(raw)
ica.exclude = [1, 2] # details on how we picked these are omitted here
ica.plot_properties(raw, picks=ica.exclude)
raw.load_data()
ica.apply(raw)
picks = pick_types(raw.info, meg=False, eeg=True, stim=False, eog=False, exclude="bads")
# Read epochs (train will be done only between 1 and 2s)
# Testing will be done with a running classifier
epochs = Epochs(
raw,
event_id=["hands", "feet"],
tmin=tmin,
tmax=tmax,
proj=True,
picks=picks,
baseline=None,
preload=True,
verbose=0
)
data = epochs.get_data()
if data.shape[1:] == input_data_shape:
data_array.append(data)
sub_labels = epochs.events[:, -1] - 2
labels.append(sub_labels)
groups.append([subject] * len(sub_labels))
data_array = np.concatenate(data_array)
labels = np.concatenate(labels)
groups = np.concatenate(groups)
Automatically created module for IPython interactive environment
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 2.3s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 2.6s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 2.0s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 2.5s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 2.3s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 2.7s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 1.9s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 2.3s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 1.7s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 1.6s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 1.9s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 2.5s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 2.3s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 1.7s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 2.2s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 1.8s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 1.7s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 1.8s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 2.4s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 2.5s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 1.1s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 1.9s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 3.0s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 2.6s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 1.2s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 1.3s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 1.9s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 2.3s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 1.5s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 2.1s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 1.4s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 1.9s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 1.6s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 1.8s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 2.4s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 2.2s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 2.6s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 3.7s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 1.8s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 2.2s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 2.1s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 1.4s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 1.4s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 3.3s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 1.6s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 2.2s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 1.9s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 1.9s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 1.7s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 1.3s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 2.1s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 2.1s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 1.9s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 1.9s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 1.3s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 3.0s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 1.9s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 1.9s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 2.2s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 1.9s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 2.0s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 1.4s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 1.7s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 2.1s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 1.8s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 1.9s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 3.0s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 1.3s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 31.9s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
/home/arthur/.pyvenv/meegnet/lib/python3.12/site-packages/sklearn/decomposition/_fastica.py:128: ConvergenceWarning: FastICA did not converge. Consider increasing tolerance or the maximum number of iterations.
warnings.warn(
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 1.6s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 2.1s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 2.2s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 3.2s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 3.4s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 2.4s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 2.5s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 2.3s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 31.4s.
Using multitaper spectrum estimation with 7 DPSS windows
/home/arthur/.pyvenv/meegnet/lib/python3.12/site-packages/sklearn/decomposition/_fastica.py:128: ConvergenceWarning: FastICA did not converge. Consider increasing tolerance or the maximum number of iterations.
warnings.warn(
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 2.1s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 2.5s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 2.0s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 2.2s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 3.4s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 2.3s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 1.3s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 2.3s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 2.7s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 1.9s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 2.4s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 2.0s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 1.8s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 2.2s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 1.8s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 2.4s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 1.5s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 3.4s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 2.6s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 1.8s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 2.9s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
/tmp/ipykernel_114965/2188380347.py:28: RuntimeWarning: Limited 1 annotation(s) that were expanding outside the data range.
raw = concatenate_raws([read_raw_edf(f, preload=True, verbose=0) for f in raw_fnames])
/tmp/ipykernel_114965/2188380347.py:28: RuntimeWarning: Limited 1 annotation(s) that were expanding outside the data range.
raw = concatenate_raws([read_raw_edf(f, preload=True, verbose=0) for f in raw_fnames])
/tmp/ipykernel_114965/2188380347.py:28: RuntimeWarning: Limited 1 annotation(s) that were expanding outside the data range.
raw = concatenate_raws([read_raw_edf(f, preload=True, verbose=0) for f in raw_fnames])
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 1.3s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 3.0s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 1.8s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 1.9s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 2.2s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 2.6s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 1.6s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 2.3s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
62 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
Fitting ICA to data using 64 channels (please be patient, this may take a while)
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Selecting by number: 20 components
Fitting ICA took 3.4s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[Parallel(n_jobs=1)]: Done 17 tasks | elapsed: 0.0s
Fitting ICA to data using 64 channels (please be patient, this may take a while)
Selecting by number: 20 components
Fitting ICA took 2.1s.
Using multitaper spectrum estimation with 7 DPSS windows
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Not setting metadata
61 matching events found
No baseline correction applied
0 projection items activated
Applying ICA to Raw instance
Transforming to ICA space (20 components)
Zeroing out 2 ICA components
Projecting back using 64 PCA components
/tmp/ipykernel_114965/2188380347.py:64: FutureWarning: The current default of copy=False will change to copy=True in 1.7. Set the value of copy explicitly to avoid this warning
data = epochs.get_data()
[2]:
from meegnet.dataloaders import EpochedDataset
import logging
LOG = logging.basicConfig(
level=logging.INFO,
format="%(asctime)s %(message)s",
datefmt="%m/%d/%Y %I:%M:%S %p",
)
# use Dataset class for data that has already been cut into trials
# else, use RestDataset with additional parameters of window and overlap to create trials.
dataset = EpochedDataset(
sfreq=200, # sampling frequency of 500 Hz
lso=True, # use leave subject out for data splits
)
dataset.set_data(data_array, labels, groups=groups, target_labels=["hands", "feet"])
[5]:
from meegnet.network import Model
save_path = "."
net_option = "eegnet"
input_size = dataset.data[0].shape
n_outputs = 2 # Here we have 2 possible outputs, binary classification task.
name = f"MNEmotorEEG_{net_option}"
learning_rate = 1e-8
my_model = Model(name, net_option, input_size, n_outputs, save_path, learning_rate = learning_rate)
print(my_model.net)
my_model.train(dataset, verbose=1, patience=50, early_stop='loss')
03/20/2025 08:20:06 PM Creating DataLoaders...
03/20/2025 08:20:07 PM Starting Training with:
03/20/2025 08:20:07 PM Batch size: 128
03/20/2025 08:20:07 PM Learning rate: 1e-08
03/20/2025 08:20:07 PM Patience: 50
EEGNet(
(feature_extraction): Sequential(
(0): Conv2d(1, 16, kernel_size=(1, 64), stride=(1, 1), padding=(1, 32), bias=False)
(1): BatchNorm2d(16, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
(2): DepthwiseConv2d(
(depthwise): Conv2d(16, 32, kernel_size=(64, 1), stride=(1, 1), groups=16, bias=False)
)
(3): BatchNorm2d(32, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
(4): ELU(alpha=1.0)
(5): AvgPool2d(kernel_size=(1, 4), stride=(1, 4), padding=0)
(6): Dropout(p=0.5, inplace=False)
(7): SeparableConv2d(
(depthwise): DepthwiseConv2d(
(depthwise): Conv2d(32, 32, kernel_size=(1, 16), stride=(1, 1), padding=(1, 8), groups=32, bias=False)
)
(pointwise): Conv2d(32, 32, kernel_size=(1, 1), stride=(1, 1), padding=(1, 8), bias=False)
)
(8): BatchNorm2d(32, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
(9): ELU(alpha=1.0)
(10): AvgPool2d(kernel_size=(1, 8), stride=(1, 8), padding=0)
(11): Dropout(p=0.5, inplace=False)
(12): Flatten()
)
(classif): Sequential(
(0): Linear(in_features=6048, out_features=2, bias=True)
)
)
We can print the train and validation loss of the network during training, as well as the training and validation accuracy during training.
This is helpful to check that the network learns correctly and that early stop is well implemented: stopping before overfitting.
[6]:
my_model.plot_loss()
my_model.plot_accuracy();
The network is not learning corrrectly, maybe more data preprocessing should be done or tuning training parameters / choosing a different architecture can solve the problem. It is also possible that the problem is too hard to solve.