MEEGNet on MNE Python EEG data

Loading EEG data from MNE

[ ]:
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
_images/train_network_eeg_1_3.png
_images/train_network_eeg_1_4.png
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
_images/train_network_eeg_1_10.png
_images/train_network_eeg_1_11.png
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
_images/train_network_eeg_1_15.png
_images/train_network_eeg_1_16.png
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
_images/train_network_eeg_1_20.png
_images/train_network_eeg_1_21.png
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
_images/train_network_eeg_1_27.png
_images/train_network_eeg_1_28.png
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
_images/train_network_eeg_1_34.png
_images/train_network_eeg_1_35.png
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
_images/train_network_eeg_1_39.png
_images/train_network_eeg_1_40.png
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
_images/train_network_eeg_1_44.png
_images/train_network_eeg_1_45.png
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
_images/train_network_eeg_1_49.png
_images/train_network_eeg_1_50.png
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
_images/train_network_eeg_1_54.png
_images/train_network_eeg_1_55.png
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
_images/train_network_eeg_1_59.png
_images/train_network_eeg_1_60.png
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
_images/train_network_eeg_1_66.png
_images/train_network_eeg_1_67.png
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
_images/train_network_eeg_1_71.png
_images/train_network_eeg_1_72.png
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
_images/train_network_eeg_1_78.png
_images/train_network_eeg_1_79.png
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
_images/train_network_eeg_1_83.png
_images/train_network_eeg_1_84.png
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
_images/train_network_eeg_1_90.png
_images/train_network_eeg_1_91.png
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
_images/train_network_eeg_1_95.png
_images/train_network_eeg_1_96.png
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
_images/train_network_eeg_1_100.png
_images/train_network_eeg_1_101.png
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
_images/train_network_eeg_1_105.png
_images/train_network_eeg_1_106.png
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
_images/train_network_eeg_1_112.png
_images/train_network_eeg_1_113.png
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
_images/train_network_eeg_1_117.png
_images/train_network_eeg_1_118.png
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
_images/train_network_eeg_1_122.png
_images/train_network_eeg_1_123.png
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
_images/train_network_eeg_1_127.png
_images/train_network_eeg_1_128.png
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
_images/train_network_eeg_1_134.png
_images/train_network_eeg_1_135.png
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
_images/train_network_eeg_1_141.png
_images/train_network_eeg_1_142.png
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
_images/train_network_eeg_1_146.png
_images/train_network_eeg_1_147.png
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
_images/train_network_eeg_1_153.png
_images/train_network_eeg_1_154.png
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
_images/train_network_eeg_1_158.png
_images/train_network_eeg_1_159.png
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
_images/train_network_eeg_1_163.png
_images/train_network_eeg_1_164.png
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
_images/train_network_eeg_1_170.png
_images/train_network_eeg_1_171.png
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
_images/train_network_eeg_1_177.png
_images/train_network_eeg_1_178.png
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
_images/train_network_eeg_1_182.png
_images/train_network_eeg_1_183.png
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
_images/train_network_eeg_1_187.png
_images/train_network_eeg_1_188.png
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
_images/train_network_eeg_1_192.png
_images/train_network_eeg_1_193.png
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
_images/train_network_eeg_1_199.png
_images/train_network_eeg_1_200.png
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
_images/train_network_eeg_1_204.png
_images/train_network_eeg_1_205.png
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
_images/train_network_eeg_1_209.png
_images/train_network_eeg_1_210.png
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
_images/train_network_eeg_1_216.png
_images/train_network_eeg_1_217.png
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
_images/train_network_eeg_1_223.png
_images/train_network_eeg_1_224.png
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
_images/train_network_eeg_1_228.png
_images/train_network_eeg_1_229.png
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
_images/train_network_eeg_1_235.png
_images/train_network_eeg_1_236.png
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
_images/train_network_eeg_1_242.png
_images/train_network_eeg_1_243.png
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
_images/train_network_eeg_1_247.png
_images/train_network_eeg_1_248.png
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
_images/train_network_eeg_1_254.png
_images/train_network_eeg_1_255.png
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
_images/train_network_eeg_1_259.png
_images/train_network_eeg_1_260.png
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
_images/train_network_eeg_1_264.png
_images/train_network_eeg_1_265.png
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
_images/train_network_eeg_1_271.png
_images/train_network_eeg_1_272.png
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
_images/train_network_eeg_1_278.png
_images/train_network_eeg_1_279.png
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
_images/train_network_eeg_1_283.png
_images/train_network_eeg_1_284.png
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
_images/train_network_eeg_1_288.png
_images/train_network_eeg_1_289.png
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
_images/train_network_eeg_1_295.png
_images/train_network_eeg_1_296.png
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
_images/train_network_eeg_1_302.png
_images/train_network_eeg_1_303.png
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
_images/train_network_eeg_1_309.png
_images/train_network_eeg_1_310.png
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
_images/train_network_eeg_1_314.png
_images/train_network_eeg_1_315.png
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
_images/train_network_eeg_1_321.png
_images/train_network_eeg_1_322.png
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
_images/train_network_eeg_1_326.png
_images/train_network_eeg_1_327.png
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
_images/train_network_eeg_1_333.png
_images/train_network_eeg_1_334.png
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
_images/train_network_eeg_1_338.png
_images/train_network_eeg_1_339.png
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
_images/train_network_eeg_1_343.png
_images/train_network_eeg_1_344.png
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
_images/train_network_eeg_1_348.png
_images/train_network_eeg_1_349.png
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
_images/train_network_eeg_1_353.png
_images/train_network_eeg_1_354.png
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
_images/train_network_eeg_1_360.png
_images/train_network_eeg_1_361.png
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
_images/train_network_eeg_1_367.png
_images/train_network_eeg_1_368.png
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
_images/train_network_eeg_1_374.png
_images/train_network_eeg_1_375.png
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
_images/train_network_eeg_1_379.png
_images/train_network_eeg_1_380.png
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
_images/train_network_eeg_1_384.png
_images/train_network_eeg_1_385.png
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
_images/train_network_eeg_1_391.png
_images/train_network_eeg_1_392.png
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
_images/train_network_eeg_1_396.png
_images/train_network_eeg_1_397.png
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
_images/train_network_eeg_1_403.png
_images/train_network_eeg_1_404.png
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
_images/train_network_eeg_1_408.png
_images/train_network_eeg_1_409.png
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
_images/train_network_eeg_1_413.png
_images/train_network_eeg_1_414.png
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
_images/train_network_eeg_1_418.png
_images/train_network_eeg_1_419.png
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
_images/train_network_eeg_1_423.png
_images/train_network_eeg_1_424.png
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
_images/train_network_eeg_1_428.png
_images/train_network_eeg_1_429.png
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
_images/train_network_eeg_1_433.png
_images/train_network_eeg_1_434.png
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
_images/train_network_eeg_1_438.png
_images/train_network_eeg_1_439.png
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
_images/train_network_eeg_1_443.png
_images/train_network_eeg_1_444.png
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
_images/train_network_eeg_1_452.png
_images/train_network_eeg_1_453.png
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
_images/train_network_eeg_1_457.png
_images/train_network_eeg_1_458.png
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
_images/train_network_eeg_1_464.png
_images/train_network_eeg_1_465.png
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
_images/train_network_eeg_1_471.png
_images/train_network_eeg_1_472.png
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
_images/train_network_eeg_1_476.png
_images/train_network_eeg_1_477.png
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
_images/train_network_eeg_1_481.png
_images/train_network_eeg_1_482.png
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
_images/train_network_eeg_1_488.png
_images/train_network_eeg_1_489.png
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
_images/train_network_eeg_1_493.png
_images/train_network_eeg_1_494.png
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
_images/train_network_eeg_1_500.png
_images/train_network_eeg_1_501.png
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
_images/train_network_eeg_1_507.png
_images/train_network_eeg_1_508.png
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
_images/train_network_eeg_1_514.png
_images/train_network_eeg_1_515.png
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
_images/train_network_eeg_1_521.png
_images/train_network_eeg_1_522.png
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
_images/train_network_eeg_1_528.png
_images/train_network_eeg_1_529.png
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
_images/train_network_eeg_1_535.png
_images/train_network_eeg_1_536.png
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
_images/train_network_eeg_1_540.png
_images/train_network_eeg_1_541.png
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
_images/train_network_eeg_1_547.png
_images/train_network_eeg_1_548.png
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
_images/train_network_eeg_1_554.png
_images/train_network_eeg_1_555.png
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
_images/train_network_eeg_1_559.png
_images/train_network_eeg_1_560.png
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
_images/train_network_eeg_1_564.png
_images/train_network_eeg_1_565.png
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
_images/train_network_eeg_1_571.png
_images/train_network_eeg_1_572.png
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
_images/train_network_eeg_1_578.png
_images/train_network_eeg_1_579.png
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
_images/train_network_eeg_1_583.png
_images/train_network_eeg_1_584.png
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
_images/train_network_eeg_1_588.png
_images/train_network_eeg_1_589.png
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
_images/train_network_eeg_1_595.png
_images/train_network_eeg_1_596.png
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
_images/train_network_eeg_1_602.png
_images/train_network_eeg_1_603.png
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
_images/train_network_eeg_1_609.png
_images/train_network_eeg_1_610.png
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
_images/train_network_eeg_1_614.png
_images/train_network_eeg_1_615.png
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
_images/train_network_eeg_1_621.png
_images/train_network_eeg_1_622.png
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
_images/train_network_eeg_1_626.png
_images/train_network_eeg_1_627.png
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
_images/train_network_eeg_1_633.png
_images/train_network_eeg_1_634.png
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
_images/train_network_eeg_1_640.png
_images/train_network_eeg_1_641.png
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
_images/train_network_eeg_1_645.png
_images/train_network_eeg_1_646.png
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()

Creating dataset object from MNE data array

[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"])

Creating model, training and plotting progression

[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();
_images/train_network_eeg_7_0.png
_images/train_network_eeg_7_1.png

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.