Automatically repair epochs#

This example demonstrates how to use autoreject to automatically repair epochs.

# Author: Mainak Jas <mainak.jas@telecom-paristech.fr>
#         Denis A. Engemann <denis.engemann@gmail.com>
# License: BSD-3-Clause

Let us first define the parameters. n_interpolates are the \(\rho\) values that we would like autoreject to try and consensus_percs are the \(\kappa\) values that autoreject will try (see the autoreject paper) for more information on these parameters).

Epochs with more than \(\kappa * N\) sensors (\(N\) total sensors) bad are dropped. For the rest of the epochs, the worst \(\rho\) bad sensors (as determined by channel-level thresholds) are interpolated. The exact values of these parameters are not preselected but learned from the data. If the number of bad sensors for a particular trial is less than \(\rho\), all the bad sensors are interpolated.

import numpy as np

n_interpolates = np.array([1, 4, 32])
consensus_percs = np.linspace(0, 1.0, 11)

For the purposes of this example, we shall use the MNE sample dataset. Therefore, let us make some MNE related imports.

import mne  # noqa
from mne.utils import check_random_state  # noqa
from mne.datasets import sample  # noqa

Now, we can import the class required for rejecting and repairing bad epochs. autoreject.compute_thresholds() is a callable which must be provided to the autoreject.AutoReject class for computing the channel-level thresholds.

from autoreject import (AutoReject, set_matplotlib_defaults)  # noqa

Let us now read in the raw fif file for MNE sample dataset.

check_random_state(42)

data_path = sample.data_path()
meg_path = data_path / 'MEG' / 'sample'
raw_fname = meg_path / 'sample_audvis_filt-0-40_raw.fif'
raw = mne.io.read_raw_fif(raw_fname, preload=True)
Opening raw data file /home/circleci/mne_data/MNE-sample-data/MEG/sample/sample_audvis_filt-0-40_raw.fif...
    Read a total of 4 projection items:
        PCA-v1 (1 x 102)  idle
        PCA-v2 (1 x 102)  idle
        PCA-v3 (1 x 102)  idle
        Average EEG reference (1 x 60)  idle
    Range : 6450 ... 48149 =     42.956 ...   320.665 secs
Ready.
Reading 0 ... 41699  =      0.000 ...   277.709 secs...

We can then read in the events

event_fname = meg_path / 'sample_audvis_filt-0-40_raw-eve.fif'
event_id = {'Auditory/Left': 1, 'Auditory/Right': 2}
tmin, tmax = -0.2, 0.5

events = mne.read_events(event_fname)

And pick MEG channels for repairing. Currently, autoreject can repair only one channel type at a time.

raw.info['bads'] = []
picks = mne.pick_types(raw.info, meg='grad', eeg=False, stim=False, eog=False,
                       include=[], exclude=[])

Now, we can create epochs. The reject params will be set to None because we do not want epochs to be dropped when instantiating mne.Epochs.

raw.del_proj()  # remove proj, don't proj while interpolating
epochs = mne.Epochs(raw, events, event_id, tmin, tmax,
                    baseline=(None, 0), reject=None,
                    verbose=False, detrend=0, preload=True)

autoreject.AutoReject internally does cross-validation to determine the optimal values \(\rho^{*}\) and \(\kappa^{*}\)

Note that autoreject.AutoReject by design supports multiple channels. If no picks are passed, separate solutions will be computed for each channel type and internally combined. This then readily supports cleaning unseen epochs from the different channel types used during fit. Here we only use a subset of channels to save time.

ar = AutoReject(n_interpolates, consensus_percs, picks=picks,
                thresh_method='random_search', random_state=42)

# Note that fitting and transforming can be done on different compatible
# portions of data if needed.
ar.fit(epochs['Auditory/Left'])
epochs_clean = ar.transform(epochs['Auditory/Left'])
evoked_clean = epochs_clean.average()
evoked = epochs['Auditory/Left'].average()
Running autoreject on ch_type=grad

  0%|          | Creating augmented epochs : 0/204 [00:00<?,       ?it/s]
  0%|          | Creating augmented epochs : 1/204 [00:00<00:29,    6.91it/s]
  1%|          | Creating augmented epochs : 2/204 [00:00<00:32,    6.12it/s]
  1%|▏         | Creating augmented epochs : 3/204 [00:00<00:34,    5.87it/s]
  2%|▏         | Creating augmented epochs : 4/204 [00:00<00:34,    5.77it/s]
  2%|▏         | Creating augmented epochs : 5/204 [00:00<00:34,    5.69it/s]
  3%|▎         | Creating augmented epochs : 6/204 [00:01<00:34,    5.66it/s]
  3%|▎         | Creating augmented epochs : 7/204 [00:01<00:35,    5.63it/s]
  4%|▍         | Creating augmented epochs : 8/204 [00:01<00:35,    5.59it/s]
  4%|▍         | Creating augmented epochs : 9/204 [00:01<00:34,    5.58it/s]
  5%|▍         | Creating augmented epochs : 10/204 [00:01<00:34,    5.56it/s]
  5%|▌         | Creating augmented epochs : 11/204 [00:01<00:34,    5.54it/s]
  6%|▌         | Creating augmented epochs : 12/204 [00:02<00:34,    5.54it/s]
  6%|▋         | Creating augmented epochs : 13/204 [00:02<00:34,    5.53it/s]
  7%|▋         | Creating augmented epochs : 14/204 [00:02<00:34,    5.52it/s]
  7%|▋         | Creating augmented epochs : 15/204 [00:02<00:34,    5.52it/s]
  8%|▊         | Creating augmented epochs : 16/204 [00:02<00:34,    5.52it/s]
  8%|▊         | Creating augmented epochs : 17/204 [00:03<00:34,    5.50it/s]
  9%|▉         | Creating augmented epochs : 18/204 [00:03<00:33,    5.49it/s]
  9%|▉         | Creating augmented epochs : 19/204 [00:03<00:33,    5.49it/s]
 10%|▉         | Creating augmented epochs : 20/204 [00:03<00:33,    5.49it/s]
 10%|█         | Creating augmented epochs : 21/204 [00:03<00:33,    5.48it/s]
 11%|█         | Creating augmented epochs : 22/204 [00:03<00:33,    5.47it/s]
 11%|█▏        | Creating augmented epochs : 23/204 [00:04<00:33,    5.47it/s]
 12%|█▏        | Creating augmented epochs : 24/204 [00:04<00:32,    5.47it/s]
 12%|█▏        | Creating augmented epochs : 25/204 [00:04<00:32,    5.47it/s]
 13%|█▎        | Creating augmented epochs : 26/204 [00:04<00:32,    5.47it/s]
 13%|█▎        | Creating augmented epochs : 27/204 [00:04<00:32,    5.47it/s]
 14%|█▎        | Creating augmented epochs : 28/204 [00:05<00:32,    5.47it/s]
 14%|█▍        | Creating augmented epochs : 29/204 [00:05<00:32,    5.46it/s]
 15%|█▍        | Creating augmented epochs : 30/204 [00:05<00:31,    5.46it/s]
 15%|█▌        | Creating augmented epochs : 31/204 [00:05<00:31,    5.46it/s]
 16%|█▌        | Creating augmented epochs : 32/204 [00:05<00:31,    5.46it/s]
 16%|█▌        | Creating augmented epochs : 33/204 [00:06<00:31,    5.46it/s]
 17%|█▋        | Creating augmented epochs : 34/204 [00:06<00:31,    5.46it/s]
 17%|█▋        | Creating augmented epochs : 35/204 [00:06<00:30,    5.46it/s]
 18%|█▊        | Creating augmented epochs : 36/204 [00:06<00:30,    5.46it/s]
 18%|█▊        | Creating augmented epochs : 37/204 [00:06<00:30,    5.46it/s]
 19%|█▊        | Creating augmented epochs : 38/204 [00:06<00:30,    5.46it/s]
 19%|█▉        | Creating augmented epochs : 39/204 [00:07<00:30,    5.47it/s]
 20%|█▉        | Creating augmented epochs : 40/204 [00:07<00:29,    5.47it/s]
 20%|██        | Creating augmented epochs : 41/204 [00:07<00:29,    5.47it/s]
 21%|██        | Creating augmented epochs : 42/204 [00:07<00:29,    5.48it/s]
 21%|██        | Creating augmented epochs : 43/204 [00:07<00:29,    5.47it/s]
 22%|██▏       | Creating augmented epochs : 44/204 [00:08<00:29,    5.48it/s]
 22%|██▏       | Creating augmented epochs : 45/204 [00:08<00:29,    5.48it/s]
 23%|██▎       | Creating augmented epochs : 46/204 [00:08<00:28,    5.48it/s]
 23%|██▎       | Creating augmented epochs : 47/204 [00:08<00:28,    5.47it/s]
 24%|██▎       | Creating augmented epochs : 48/204 [00:08<00:28,    5.48it/s]
 24%|██▍       | Creating augmented epochs : 49/204 [00:08<00:28,    5.48it/s]
 25%|██▍       | Creating augmented epochs : 50/204 [00:09<00:28,    5.48it/s]
 25%|██▌       | Creating augmented epochs : 51/204 [00:09<00:27,    5.48it/s]
 25%|██▌       | Creating augmented epochs : 52/204 [00:09<00:27,    5.48it/s]
 26%|██▌       | Creating augmented epochs : 53/204 [00:09<00:27,    5.47it/s]
 26%|██▋       | Creating augmented epochs : 54/204 [00:09<00:27,    5.47it/s]
 27%|██▋       | Creating augmented epochs : 55/204 [00:10<00:27,    5.48it/s]
 27%|██▋       | Creating augmented epochs : 56/204 [00:10<00:27,    5.48it/s]
 28%|██▊       | Creating augmented epochs : 57/204 [00:10<00:26,    5.48it/s]
 28%|██▊       | Creating augmented epochs : 58/204 [00:10<00:26,    5.48it/s]
 29%|██▉       | Creating augmented epochs : 59/204 [00:10<00:26,    5.47it/s]
 29%|██▉       | Creating augmented epochs : 60/204 [00:10<00:26,    5.47it/s]
 30%|██▉       | Creating augmented epochs : 61/204 [00:11<00:26,    5.48it/s]
 30%|███       | Creating augmented epochs : 62/204 [00:11<00:25,    5.48it/s]
 31%|███       | Creating augmented epochs : 63/204 [00:11<00:25,    5.48it/s]
 31%|███▏      | Creating augmented epochs : 64/204 [00:11<00:25,    5.48it/s]
 32%|███▏      | Creating augmented epochs : 65/204 [00:11<00:25,    5.45it/s]
 32%|███▏      | Creating augmented epochs : 66/204 [00:12<00:25,    5.45it/s]
 33%|███▎      | Creating augmented epochs : 67/204 [00:12<00:25,    5.45it/s]
 33%|███▎      | Creating augmented epochs : 68/204 [00:12<00:24,    5.46it/s]
 34%|███▍      | Creating augmented epochs : 69/204 [00:12<00:24,    5.46it/s]
 34%|███▍      | Creating augmented epochs : 70/204 [00:12<00:24,    5.46it/s]
 35%|███▍      | Creating augmented epochs : 71/204 [00:12<00:24,    5.45it/s]
 35%|███▌      | Creating augmented epochs : 72/204 [00:13<00:24,    5.45it/s]
 36%|███▌      | Creating augmented epochs : 73/204 [00:13<00:24,    5.45it/s]
 36%|███▋      | Creating augmented epochs : 74/204 [00:13<00:23,    5.45it/s]
 37%|███▋      | Creating augmented epochs : 75/204 [00:13<00:23,    5.45it/s]
 37%|███▋      | Creating augmented epochs : 76/204 [00:13<00:23,    5.45it/s]
 38%|███▊      | Creating augmented epochs : 77/204 [00:14<00:23,    5.44it/s]
 38%|███▊      | Creating augmented epochs : 78/204 [00:14<00:23,    5.44it/s]
 39%|███▊      | Creating augmented epochs : 79/204 [00:14<00:23,    5.43it/s]
 39%|███▉      | Creating augmented epochs : 80/204 [00:14<00:22,    5.43it/s]
 40%|███▉      | Creating augmented epochs : 81/204 [00:14<00:22,    5.43it/s]
 40%|████      | Creating augmented epochs : 82/204 [00:15<00:22,    5.43it/s]
 41%|████      | Creating augmented epochs : 83/204 [00:15<00:22,    5.43it/s]
 41%|████      | Creating augmented epochs : 84/204 [00:15<00:22,    5.43it/s]
 42%|████▏     | Creating augmented epochs : 85/204 [00:15<00:21,    5.43it/s]
 42%|████▏     | Creating augmented epochs : 86/204 [00:15<00:21,    5.43it/s]
 43%|████▎     | Creating augmented epochs : 87/204 [00:15<00:21,    5.42it/s]
 43%|████▎     | Creating augmented epochs : 88/204 [00:16<00:21,    5.43it/s]
 44%|████▎     | Creating augmented epochs : 89/204 [00:16<00:21,    5.42it/s]
 44%|████▍     | Creating augmented epochs : 90/204 [00:16<00:21,    5.42it/s]
 45%|████▍     | Creating augmented epochs : 91/204 [00:16<00:21,    5.35it/s]
 45%|████▌     | Creating augmented epochs : 92/204 [00:16<00:20,    5.34it/s]
 46%|████▌     | Creating augmented epochs : 93/204 [00:17<00:20,    5.35it/s]
 46%|████▌     | Creating augmented epochs : 94/204 [00:17<00:20,    5.36it/s]
 47%|████▋     | Creating augmented epochs : 95/204 [00:17<00:20,    5.35it/s]
 47%|████▋     | Creating augmented epochs : 96/204 [00:17<00:20,    5.36it/s]
 48%|████▊     | Creating augmented epochs : 97/204 [00:17<00:19,    5.37it/s]
 48%|████▊     | Creating augmented epochs : 98/204 [00:18<00:19,    5.37it/s]
 49%|████▊     | Creating augmented epochs : 99/204 [00:18<00:19,    5.37it/s]
 49%|████▉     | Creating augmented epochs : 100/204 [00:18<00:19,    5.38it/s]
 50%|████▉     | Creating augmented epochs : 101/204 [00:18<00:19,    5.38it/s]
 50%|█████     | Creating augmented epochs : 102/204 [00:18<00:19,    5.34it/s]
 50%|█████     | Creating augmented epochs : 103/204 [00:18<00:18,    5.33it/s]
 51%|█████     | Creating augmented epochs : 104/204 [00:19<00:18,    5.33it/s]
 51%|█████▏    | Creating augmented epochs : 105/204 [00:19<00:18,    5.33it/s]
 52%|█████▏    | Creating augmented epochs : 106/204 [00:19<00:18,    5.34it/s]
 52%|█████▏    | Creating augmented epochs : 107/204 [00:19<00:18,    5.33it/s]
 53%|█████▎    | Creating augmented epochs : 108/204 [00:19<00:17,    5.34it/s]
 53%|█████▎    | Creating augmented epochs : 109/204 [00:20<00:17,    5.34it/s]
 54%|█████▍    | Creating augmented epochs : 110/204 [00:20<00:17,    5.34it/s]
 54%|█████▍    | Creating augmented epochs : 111/204 [00:20<00:17,    5.35it/s]
 55%|█████▍    | Creating augmented epochs : 112/204 [00:20<00:17,    5.35it/s]
 55%|█████▌    | Creating augmented epochs : 113/204 [00:20<00:17,    5.34it/s]
 56%|█████▌    | Creating augmented epochs : 114/204 [00:21<00:16,    5.34it/s]
 56%|█████▋    | Creating augmented epochs : 115/204 [00:21<00:16,    5.35it/s]
 57%|█████▋    | Creating augmented epochs : 116/204 [00:21<00:16,    5.35it/s]
 57%|█████▋    | Creating augmented epochs : 117/204 [00:21<00:16,    5.35it/s]
 58%|█████▊    | Creating augmented epochs : 118/204 [00:21<00:16,    5.36it/s]
 58%|█████▊    | Creating augmented epochs : 119/204 [00:21<00:15,    5.36it/s]
 59%|█████▉    | Creating augmented epochs : 120/204 [00:22<00:15,    5.36it/s]
 59%|█████▉    | Creating augmented epochs : 121/204 [00:22<00:15,    5.37it/s]
 60%|█████▉    | Creating augmented epochs : 122/204 [00:22<00:15,    5.37it/s]
 60%|██████    | Creating augmented epochs : 123/204 [00:22<00:15,    5.38it/s]
 61%|██████    | Creating augmented epochs : 124/204 [00:22<00:14,    5.38it/s]
 61%|██████▏   | Creating augmented epochs : 125/204 [00:23<00:14,    5.37it/s]
 62%|██████▏   | Creating augmented epochs : 126/204 [00:23<00:14,    5.38it/s]
 62%|██████▏   | Creating augmented epochs : 127/204 [00:23<00:14,    5.38it/s]
 63%|██████▎   | Creating augmented epochs : 128/204 [00:23<00:14,    5.38it/s]
 63%|██████▎   | Creating augmented epochs : 129/204 [00:23<00:13,    5.38it/s]
 64%|██████▎   | Creating augmented epochs : 130/204 [00:23<00:13,    5.39it/s]
 64%|██████▍   | Creating augmented epochs : 131/204 [00:24<00:13,    5.38it/s]
 65%|██████▍   | Creating augmented epochs : 132/204 [00:24<00:13,    5.38it/s]
 65%|██████▌   | Creating augmented epochs : 133/204 [00:24<00:13,    5.39it/s]
 66%|██████▌   | Creating augmented epochs : 134/204 [00:24<00:12,    5.39it/s]
 66%|██████▌   | Creating augmented epochs : 135/204 [00:24<00:12,    5.39it/s]
 67%|██████▋   | Creating augmented epochs : 136/204 [00:25<00:12,    5.39it/s]
 67%|██████▋   | Creating augmented epochs : 137/204 [00:25<00:12,    5.39it/s]
 68%|██████▊   | Creating augmented epochs : 138/204 [00:25<00:12,    5.39it/s]
 68%|██████▊   | Creating augmented epochs : 139/204 [00:25<00:12,    5.40it/s]
 69%|██████▊   | Creating augmented epochs : 140/204 [00:25<00:11,    5.40it/s]
 69%|██████▉   | Creating augmented epochs : 141/204 [00:26<00:11,    5.40it/s]
 70%|██████▉   | Creating augmented epochs : 142/204 [00:26<00:11,    5.40it/s]
 70%|███████   | Creating augmented epochs : 143/204 [00:26<00:11,    5.39it/s]
 71%|███████   | Creating augmented epochs : 144/204 [00:26<00:11,    5.40it/s]
 71%|███████   | Creating augmented epochs : 145/204 [00:26<00:10,    5.40it/s]
 72%|███████▏  | Creating augmented epochs : 146/204 [00:26<00:10,    5.41it/s]
 72%|███████▏  | Creating augmented epochs : 147/204 [00:27<00:10,    5.41it/s]
 73%|███████▎  | Creating augmented epochs : 148/204 [00:27<00:10,    5.41it/s]
 73%|███████▎  | Creating augmented epochs : 149/204 [00:27<00:10,    5.41it/s]
 74%|███████▎  | Creating augmented epochs : 150/204 [00:27<00:09,    5.41it/s]
 74%|███████▍  | Creating augmented epochs : 151/204 [00:27<00:09,    5.42it/s]
 75%|███████▍  | Creating augmented epochs : 152/204 [00:28<00:09,    5.42it/s]
 75%|███████▌  | Creating augmented epochs : 153/204 [00:28<00:09,    5.42it/s]
 75%|███████▌  | Creating augmented epochs : 154/204 [00:28<00:09,    5.42it/s]
 76%|███████▌  | Creating augmented epochs : 155/204 [00:28<00:09,    5.42it/s]
 76%|███████▋  | Creating augmented epochs : 156/204 [00:28<00:08,    5.43it/s]
 77%|███████▋  | Creating augmented epochs : 157/204 [00:28<00:08,    5.43it/s]
 77%|███████▋  | Creating augmented epochs : 158/204 [00:29<00:08,    5.43it/s]
 78%|███████▊  | Creating augmented epochs : 159/204 [00:29<00:08,    5.44it/s]
 78%|███████▊  | Creating augmented epochs : 160/204 [00:29<00:08,    5.44it/s]
 79%|███████▉  | Creating augmented epochs : 161/204 [00:29<00:07,    5.44it/s]
 79%|███████▉  | Creating augmented epochs : 162/204 [00:29<00:07,    5.45it/s]
 80%|███████▉  | Creating augmented epochs : 163/204 [00:30<00:07,    5.45it/s]
 80%|████████  | Creating augmented epochs : 164/204 [00:30<00:07,    5.45it/s]
 81%|████████  | Creating augmented epochs : 165/204 [00:30<00:07,    5.46it/s]
 81%|████████▏ | Creating augmented epochs : 166/204 [00:30<00:06,    5.46it/s]
 82%|████████▏ | Creating augmented epochs : 167/204 [00:30<00:06,    5.46it/s]
 82%|████████▏ | Creating augmented epochs : 168/204 [00:30<00:06,    5.46it/s]
 83%|████████▎ | Creating augmented epochs : 169/204 [00:31<00:06,    5.46it/s]
 83%|████████▎ | Creating augmented epochs : 170/204 [00:31<00:06,    5.46it/s]
 84%|████████▍ | Creating augmented epochs : 171/204 [00:31<00:06,    5.46it/s]
 84%|████████▍ | Creating augmented epochs : 172/204 [00:31<00:05,    5.46it/s]
 85%|████████▍ | Creating augmented epochs : 173/204 [00:31<00:05,    5.32it/s]
 85%|████████▌ | Creating augmented epochs : 174/204 [00:32<00:05,    5.18it/s]
 86%|████████▌ | Creating augmented epochs : 175/204 [00:32<00:05,    5.20it/s]
 86%|████████▋ | Creating augmented epochs : 176/204 [00:32<00:05,    5.22it/s]
 87%|████████▋ | Creating augmented epochs : 177/204 [00:32<00:05,    5.23it/s]
 87%|████████▋ | Creating augmented epochs : 178/204 [00:32<00:04,    5.25it/s]
 88%|████████▊ | Creating augmented epochs : 179/204 [00:33<00:04,    5.25it/s]
 88%|████████▊ | Creating augmented epochs : 180/204 [00:33<00:04,    5.26it/s]
 89%|████████▊ | Creating augmented epochs : 181/204 [00:33<00:04,    5.27it/s]
 89%|████████▉ | Creating augmented epochs : 182/204 [00:33<00:04,    5.28it/s]
 90%|████████▉ | Creating augmented epochs : 183/204 [00:33<00:03,    5.29it/s]
 90%|█████████ | Creating augmented epochs : 184/204 [00:34<00:03,    5.30it/s]
 91%|█████████ | Creating augmented epochs : 185/204 [00:34<00:03,    5.30it/s]
 91%|█████████ | Creating augmented epochs : 186/204 [00:34<00:03,    5.31it/s]
 92%|█████████▏| Creating augmented epochs : 187/204 [00:34<00:03,    5.32it/s]
 92%|█████████▏| Creating augmented epochs : 188/204 [00:34<00:03,    5.33it/s]
 93%|█████████▎| Creating augmented epochs : 189/204 [00:34<00:02,    5.33it/s]
 93%|█████████▎| Creating augmented epochs : 190/204 [00:35<00:02,    5.34it/s]
 94%|█████████▎| Creating augmented epochs : 191/204 [00:35<00:02,    5.34it/s]
 94%|█████████▍| Creating augmented epochs : 192/204 [00:35<00:02,    5.35it/s]
 95%|█████████▍| Creating augmented epochs : 193/204 [00:35<00:02,    5.35it/s]
 95%|█████████▌| Creating augmented epochs : 194/204 [00:35<00:01,    5.36it/s]
 96%|█████████▌| Creating augmented epochs : 195/204 [00:36<00:01,    5.36it/s]
 96%|█████████▌| Creating augmented epochs : 196/204 [00:36<00:01,    5.37it/s]
 97%|█████████▋| Creating augmented epochs : 197/204 [00:36<00:01,    5.37it/s]
 97%|█████████▋| Creating augmented epochs : 198/204 [00:36<00:01,    5.37it/s]
 98%|█████████▊| Creating augmented epochs : 199/204 [00:36<00:00,    5.38it/s]
 98%|█████████▊| Creating augmented epochs : 200/204 [00:37<00:00,    5.38it/s]
 99%|█████████▊| Creating augmented epochs : 201/204 [00:37<00:00,    5.38it/s]
 99%|█████████▉| Creating augmented epochs : 202/204 [00:37<00:00,    5.39it/s]
100%|█████████▉| Creating augmented epochs : 203/204 [00:37<00:00,    5.39it/s]
100%|██████████| Creating augmented epochs : 204/204 [00:37<00:00,    5.40it/s]
100%|██████████| Creating augmented epochs : 204/204 [00:37<00:00,    5.41it/s]

  0%|          | Computing thresholds ... : 0/204 [00:00<?,       ?it/s]
  0%|          | Computing thresholds ... : 1/204 [00:00<00:28,    7.14it/s]
  1%|          | Computing thresholds ... : 2/204 [00:00<00:26,    7.55it/s]
  1%|▏         | Computing thresholds ... : 3/204 [00:00<00:26,    7.70it/s]
  2%|▏         | Computing thresholds ... : 4/204 [00:00<00:25,    7.78it/s]
  2%|▏         | Computing thresholds ... : 5/204 [00:00<00:25,    7.83it/s]
  3%|▎         | Computing thresholds ... : 6/204 [00:00<00:25,    7.85it/s]
  3%|▎         | Computing thresholds ... : 7/204 [00:00<00:25,    7.87it/s]
  4%|▍         | Computing thresholds ... : 8/204 [00:01<00:24,    7.89it/s]
  4%|▍         | Computing thresholds ... : 9/204 [00:01<00:24,    7.89it/s]
  5%|▍         | Computing thresholds ... : 10/204 [00:01<00:24,    7.90it/s]
  5%|▌         | Computing thresholds ... : 11/204 [00:01<00:24,    7.89it/s]
  6%|▌         | Computing thresholds ... : 12/204 [00:01<00:24,    7.90it/s]
  6%|▋         | Computing thresholds ... : 13/204 [00:01<00:24,    7.91it/s]
  7%|▋         | Computing thresholds ... : 14/204 [00:01<00:23,    7.93it/s]
  7%|▋         | Computing thresholds ... : 15/204 [00:01<00:23,    7.93it/s]
  8%|▊         | Computing thresholds ... : 16/204 [00:02<00:23,    7.94it/s]
  8%|▊         | Computing thresholds ... : 17/204 [00:02<00:23,    7.94it/s]
  9%|▉         | Computing thresholds ... : 18/204 [00:02<00:23,    7.94it/s]
  9%|▉         | Computing thresholds ... : 19/204 [00:02<00:23,    7.94it/s]
 10%|▉         | Computing thresholds ... : 20/204 [00:02<00:23,    7.94it/s]
 10%|█         | Computing thresholds ... : 21/204 [00:02<00:23,    7.94it/s]
 11%|█         | Computing thresholds ... : 22/204 [00:02<00:22,    7.94it/s]
 11%|█▏        | Computing thresholds ... : 23/204 [00:02<00:22,    7.94it/s]
 12%|█▏        | Computing thresholds ... : 24/204 [00:03<00:22,    7.94it/s]
 12%|█▏        | Computing thresholds ... : 25/204 [00:03<00:22,    7.94it/s]
 13%|█▎        | Computing thresholds ... : 26/204 [00:03<00:22,    7.94it/s]
 13%|█▎        | Computing thresholds ... : 27/204 [00:03<00:22,    7.94it/s]
 14%|█▎        | Computing thresholds ... : 28/204 [00:03<00:22,    7.95it/s]
 14%|█▍        | Computing thresholds ... : 29/204 [00:03<00:22,    7.95it/s]
 15%|█▍        | Computing thresholds ... : 30/204 [00:03<00:21,    7.95it/s]
 15%|█▌        | Computing thresholds ... : 31/204 [00:03<00:21,    7.95it/s]
 16%|█▌        | Computing thresholds ... : 32/204 [00:04<00:21,    7.95it/s]
 16%|█▌        | Computing thresholds ... : 33/204 [00:04<00:21,    7.95it/s]
 17%|█▋        | Computing thresholds ... : 34/204 [00:04<00:21,    7.95it/s]
 17%|█▋        | Computing thresholds ... : 35/204 [00:04<00:21,    7.95it/s]
 18%|█▊        | Computing thresholds ... : 36/204 [00:04<00:21,    7.95it/s]
 18%|█▊        | Computing thresholds ... : 37/204 [00:04<00:21,    7.94it/s]
 19%|█▊        | Computing thresholds ... : 38/204 [00:04<00:20,    7.94it/s]
 19%|█▉        | Computing thresholds ... : 39/204 [00:04<00:20,    7.94it/s]
 20%|█▉        | Computing thresholds ... : 40/204 [00:05<00:20,    7.94it/s]
 20%|██        | Computing thresholds ... : 41/204 [00:05<00:20,    7.94it/s]
 21%|██        | Computing thresholds ... : 42/204 [00:05<00:20,    7.94it/s]
 21%|██        | Computing thresholds ... : 43/204 [00:05<00:20,    7.94it/s]
 22%|██▏       | Computing thresholds ... : 44/204 [00:05<00:20,    7.94it/s]
 22%|██▏       | Computing thresholds ... : 45/204 [00:05<00:20,    7.94it/s]
 23%|██▎       | Computing thresholds ... : 46/204 [00:05<00:19,    7.94it/s]
 23%|██▎       | Computing thresholds ... : 47/204 [00:05<00:19,    7.94it/s]
 24%|██▎       | Computing thresholds ... : 48/204 [00:06<00:19,    7.94it/s]
 24%|██▍       | Computing thresholds ... : 49/204 [00:06<00:19,    7.94it/s]
 25%|██▍       | Computing thresholds ... : 50/204 [00:06<00:19,    7.94it/s]
 25%|██▌       | Computing thresholds ... : 51/204 [00:06<00:19,    7.94it/s]
 25%|██▌       | Computing thresholds ... : 52/204 [00:06<00:19,    7.94it/s]
 26%|██▌       | Computing thresholds ... : 53/204 [00:06<00:19,    7.94it/s]
 26%|██▋       | Computing thresholds ... : 54/204 [00:06<00:18,    7.94it/s]
 27%|██▋       | Computing thresholds ... : 55/204 [00:06<00:18,    7.94it/s]
 27%|██▋       | Computing thresholds ... : 56/204 [00:07<00:18,    7.94it/s]
 28%|██▊       | Computing thresholds ... : 57/204 [00:07<00:18,    7.93it/s]
 28%|██▊       | Computing thresholds ... : 58/204 [00:07<00:18,    7.93it/s]
 29%|██▉       | Computing thresholds ... : 59/204 [00:07<00:18,    7.93it/s]
 29%|██▉       | Computing thresholds ... : 60/204 [00:07<00:18,    7.93it/s]
 30%|██▉       | Computing thresholds ... : 61/204 [00:07<00:18,    7.93it/s]
 30%|███       | Computing thresholds ... : 62/204 [00:07<00:17,    7.93it/s]
 31%|███       | Computing thresholds ... : 63/204 [00:07<00:17,    7.93it/s]
 31%|███▏      | Computing thresholds ... : 64/204 [00:08<00:17,    7.93it/s]
 32%|███▏      | Computing thresholds ... : 65/204 [00:08<00:17,    7.93it/s]
 32%|███▏      | Computing thresholds ... : 66/204 [00:08<00:17,    7.93it/s]
 33%|███▎      | Computing thresholds ... : 67/204 [00:08<00:17,    7.93it/s]
 33%|███▎      | Computing thresholds ... : 68/204 [00:08<00:17,    7.92it/s]
 34%|███▍      | Computing thresholds ... : 69/204 [00:08<00:17,    7.92it/s]
 34%|███▍      | Computing thresholds ... : 70/204 [00:08<00:16,    7.92it/s]
 35%|███▍      | Computing thresholds ... : 71/204 [00:08<00:16,    7.92it/s]
 35%|███▌      | Computing thresholds ... : 72/204 [00:09<00:16,    7.92it/s]
 36%|███▌      | Computing thresholds ... : 73/204 [00:09<00:16,    7.92it/s]
 36%|███▋      | Computing thresholds ... : 74/204 [00:09<00:16,    7.91it/s]
 37%|███▋      | Computing thresholds ... : 75/204 [00:09<00:16,    7.91it/s]
 37%|███▋      | Computing thresholds ... : 76/204 [00:09<00:16,    7.90it/s]
 38%|███▊      | Computing thresholds ... : 77/204 [00:09<00:16,    7.90it/s]
 38%|███▊      | Computing thresholds ... : 78/204 [00:09<00:15,    7.91it/s]
 39%|███▊      | Computing thresholds ... : 79/204 [00:09<00:15,    7.91it/s]
 39%|███▉      | Computing thresholds ... : 80/204 [00:10<00:15,    7.91it/s]
 40%|███▉      | Computing thresholds ... : 81/204 [00:10<00:15,    7.91it/s]
 40%|████      | Computing thresholds ... : 82/204 [00:10<00:15,    7.91it/s]
 41%|████      | Computing thresholds ... : 83/204 [00:10<00:15,    7.91it/s]
 41%|████      | Computing thresholds ... : 84/204 [00:10<00:15,    7.91it/s]
 42%|████▏     | Computing thresholds ... : 85/204 [00:10<00:15,    7.91it/s]
 42%|████▏     | Computing thresholds ... : 86/204 [00:10<00:14,    7.91it/s]
 43%|████▎     | Computing thresholds ... : 87/204 [00:10<00:14,    7.91it/s]
 43%|████▎     | Computing thresholds ... : 88/204 [00:11<00:14,    7.91it/s]
 44%|████▎     | Computing thresholds ... : 89/204 [00:11<00:14,    7.91it/s]
 44%|████▍     | Computing thresholds ... : 90/204 [00:11<00:14,    7.91it/s]
 45%|████▍     | Computing thresholds ... : 91/204 [00:11<00:14,    7.91it/s]
 45%|████▌     | Computing thresholds ... : 92/204 [00:11<00:14,    7.91it/s]
 46%|████▌     | Computing thresholds ... : 93/204 [00:11<00:14,    7.91it/s]
 46%|████▌     | Computing thresholds ... : 94/204 [00:11<00:13,    7.91it/s]
 47%|████▋     | Computing thresholds ... : 95/204 [00:11<00:13,    7.91it/s]
 47%|████▋     | Computing thresholds ... : 96/204 [00:12<00:13,    7.91it/s]
 48%|████▊     | Computing thresholds ... : 97/204 [00:12<00:13,    7.91it/s]
 48%|████▊     | Computing thresholds ... : 98/204 [00:12<00:13,    7.91it/s]
 49%|████▊     | Computing thresholds ... : 99/204 [00:12<00:13,    7.91it/s]
 49%|████▉     | Computing thresholds ... : 100/204 [00:12<00:13,    7.91it/s]
 50%|████▉     | Computing thresholds ... : 101/204 [00:12<00:13,    7.90it/s]
 50%|█████     | Computing thresholds ... : 102/204 [00:12<00:12,    7.90it/s]
 50%|█████     | Computing thresholds ... : 103/204 [00:13<00:12,    7.90it/s]
 51%|█████     | Computing thresholds ... : 104/204 [00:13<00:12,    7.90it/s]
 51%|█████▏    | Computing thresholds ... : 105/204 [00:13<00:12,    7.90it/s]
 52%|█████▏    | Computing thresholds ... : 106/204 [00:13<00:12,    7.91it/s]
 52%|█████▏    | Computing thresholds ... : 107/204 [00:13<00:12,    7.91it/s]
 53%|█████▎    | Computing thresholds ... : 108/204 [00:13<00:12,    7.91it/s]
 53%|█████▎    | Computing thresholds ... : 109/204 [00:13<00:12,    7.91it/s]
 54%|█████▍    | Computing thresholds ... : 110/204 [00:13<00:11,    7.91it/s]
 54%|█████▍    | Computing thresholds ... : 111/204 [00:14<00:11,    7.91it/s]
 55%|█████▍    | Computing thresholds ... : 112/204 [00:14<00:11,    7.91it/s]
 55%|█████▌    | Computing thresholds ... : 113/204 [00:14<00:11,    7.91it/s]
 56%|█████▌    | Computing thresholds ... : 114/204 [00:14<00:11,    7.91it/s]
 56%|█████▋    | Computing thresholds ... : 115/204 [00:14<00:11,    7.91it/s]
 57%|█████▋    | Computing thresholds ... : 116/204 [00:14<00:11,    7.91it/s]
 57%|█████▋    | Computing thresholds ... : 117/204 [00:14<00:10,    7.92it/s]
 58%|█████▊    | Computing thresholds ... : 118/204 [00:14<00:10,    7.92it/s]
 58%|█████▊    | Computing thresholds ... : 119/204 [00:15<00:10,    7.91it/s]
 59%|█████▉    | Computing thresholds ... : 120/204 [00:15<00:10,    7.91it/s]
 59%|█████▉    | Computing thresholds ... : 121/204 [00:15<00:10,    7.91it/s]
 60%|█████▉    | Computing thresholds ... : 122/204 [00:15<00:10,    7.91it/s]
 60%|██████    | Computing thresholds ... : 123/204 [00:15<00:10,    7.91it/s]
 61%|██████    | Computing thresholds ... : 124/204 [00:15<00:10,    7.91it/s]
 61%|██████▏   | Computing thresholds ... : 125/204 [00:15<00:09,    7.92it/s]
 62%|██████▏   | Computing thresholds ... : 126/204 [00:15<00:09,    7.93it/s]
 62%|██████▏   | Computing thresholds ... : 127/204 [00:16<00:09,    7.93it/s]
 63%|██████▎   | Computing thresholds ... : 128/204 [00:16<00:09,    7.94it/s]
 63%|██████▎   | Computing thresholds ... : 129/204 [00:16<00:09,    7.94it/s]
 64%|██████▎   | Computing thresholds ... : 130/204 [00:16<00:09,    7.94it/s]
 64%|██████▍   | Computing thresholds ... : 131/204 [00:16<00:09,    7.95it/s]
 65%|██████▍   | Computing thresholds ... : 132/204 [00:16<00:09,    7.95it/s]
 65%|██████▌   | Computing thresholds ... : 133/204 [00:16<00:08,    7.95it/s]
 66%|██████▌   | Computing thresholds ... : 134/204 [00:16<00:08,    7.95it/s]
 66%|██████▌   | Computing thresholds ... : 135/204 [00:17<00:08,    7.95it/s]
 67%|██████▋   | Computing thresholds ... : 136/204 [00:17<00:08,    7.95it/s]
 67%|██████▋   | Computing thresholds ... : 137/204 [00:17<00:08,    7.95it/s]
 68%|██████▊   | Computing thresholds ... : 138/204 [00:17<00:08,    7.95it/s]
 68%|██████▊   | Computing thresholds ... : 139/204 [00:17<00:08,    7.95it/s]
 69%|██████▊   | Computing thresholds ... : 140/204 [00:17<00:08,    7.95it/s]
 69%|██████▉   | Computing thresholds ... : 141/204 [00:17<00:07,    7.96it/s]
 70%|██████▉   | Computing thresholds ... : 142/204 [00:17<00:07,    7.95it/s]
 70%|███████   | Computing thresholds ... : 143/204 [00:18<00:07,    7.96it/s]
 71%|███████   | Computing thresholds ... : 144/204 [00:18<00:07,    7.96it/s]
 71%|███████   | Computing thresholds ... : 145/204 [00:18<00:07,    7.96it/s]
 72%|███████▏  | Computing thresholds ... : 146/204 [00:18<00:07,    7.96it/s]
 72%|███████▏  | Computing thresholds ... : 147/204 [00:18<00:07,    7.96it/s]
 73%|███████▎  | Computing thresholds ... : 148/204 [00:18<00:07,    7.95it/s]
 73%|███████▎  | Computing thresholds ... : 149/204 [00:18<00:06,    7.96it/s]
 74%|███████▎  | Computing thresholds ... : 150/204 [00:18<00:06,    7.95it/s]
 74%|███████▍  | Computing thresholds ... : 151/204 [00:19<00:06,    7.95it/s]
 75%|███████▍  | Computing thresholds ... : 152/204 [00:19<00:06,    7.96it/s]
 75%|███████▌  | Computing thresholds ... : 153/204 [00:19<00:06,    7.96it/s]
 75%|███████▌  | Computing thresholds ... : 154/204 [00:19<00:06,    7.96it/s]
 76%|███████▌  | Computing thresholds ... : 155/204 [00:19<00:06,    7.96it/s]
 76%|███████▋  | Computing thresholds ... : 156/204 [00:19<00:06,    7.96it/s]
 77%|███████▋  | Computing thresholds ... : 157/204 [00:19<00:05,    7.96it/s]
 77%|███████▋  | Computing thresholds ... : 158/204 [00:19<00:05,    7.96it/s]
 78%|███████▊  | Computing thresholds ... : 159/204 [00:20<00:05,    7.96it/s]
 78%|███████▊  | Computing thresholds ... : 160/204 [00:20<00:05,    7.96it/s]
 79%|███████▉  | Computing thresholds ... : 161/204 [00:20<00:05,    7.96it/s]
 79%|███████▉  | Computing thresholds ... : 162/204 [00:20<00:05,    7.96it/s]
 80%|███████▉  | Computing thresholds ... : 163/204 [00:20<00:05,    7.96it/s]
 80%|████████  | Computing thresholds ... : 164/204 [00:20<00:05,    7.96it/s]
 81%|████████  | Computing thresholds ... : 165/204 [00:20<00:04,    7.96it/s]
 81%|████████▏ | Computing thresholds ... : 166/204 [00:20<00:04,    7.96it/s]
 82%|████████▏ | Computing thresholds ... : 167/204 [00:21<00:04,    7.96it/s]
 82%|████████▏ | Computing thresholds ... : 168/204 [00:21<00:04,    7.96it/s]
 83%|████████▎ | Computing thresholds ... : 169/204 [00:21<00:04,    7.96it/s]
 83%|████████▎ | Computing thresholds ... : 170/204 [00:21<00:04,    7.96it/s]
 84%|████████▍ | Computing thresholds ... : 171/204 [00:21<00:04,    7.96it/s]
 84%|████████▍ | Computing thresholds ... : 172/204 [00:21<00:04,    7.96it/s]
 85%|████████▍ | Computing thresholds ... : 173/204 [00:21<00:03,    7.96it/s]
 85%|████████▌ | Computing thresholds ... : 174/204 [00:21<00:03,    7.95it/s]
 86%|████████▌ | Computing thresholds ... : 175/204 [00:22<00:03,    7.95it/s]
 86%|████████▋ | Computing thresholds ... : 176/204 [00:22<00:03,    7.95it/s]
 87%|████████▋ | Computing thresholds ... : 177/204 [00:22<00:03,    7.95it/s]
 87%|████████▋ | Computing thresholds ... : 178/204 [00:22<00:03,    7.96it/s]
 88%|████████▊ | Computing thresholds ... : 179/204 [00:22<00:03,    7.96it/s]
 88%|████████▊ | Computing thresholds ... : 180/204 [00:22<00:03,    7.95it/s]
 89%|████████▊ | Computing thresholds ... : 181/204 [00:22<00:02,    7.95it/s]
 89%|████████▉ | Computing thresholds ... : 182/204 [00:22<00:02,    7.95it/s]
 90%|████████▉ | Computing thresholds ... : 183/204 [00:23<00:02,    7.95it/s]
 90%|█████████ | Computing thresholds ... : 184/204 [00:23<00:02,    7.95it/s]
 91%|█████████ | Computing thresholds ... : 185/204 [00:23<00:02,    7.95it/s]
 91%|█████████ | Computing thresholds ... : 186/204 [00:23<00:02,    7.95it/s]
 92%|█████████▏| Computing thresholds ... : 187/204 [00:23<00:02,    7.95it/s]
 92%|█████████▏| Computing thresholds ... : 188/204 [00:23<00:02,    7.95it/s]
 93%|█████████▎| Computing thresholds ... : 189/204 [00:23<00:01,    7.95it/s]
 93%|█████████▎| Computing thresholds ... : 190/204 [00:23<00:01,    7.95it/s]
 94%|█████████▎| Computing thresholds ... : 191/204 [00:24<00:01,    7.94it/s]
 94%|█████████▍| Computing thresholds ... : 192/204 [00:24<00:01,    7.95it/s]
 95%|█████████▍| Computing thresholds ... : 193/204 [00:24<00:01,    7.95it/s]
 95%|█████████▌| Computing thresholds ... : 194/204 [00:24<00:01,    7.95it/s]
 96%|█████████▌| Computing thresholds ... : 195/204 [00:24<00:01,    7.95it/s]
 96%|█████████▌| Computing thresholds ... : 196/204 [00:24<00:01,    7.95it/s]
 97%|█████████▋| Computing thresholds ... : 197/204 [00:24<00:00,    7.95it/s]
 97%|█████████▋| Computing thresholds ... : 198/204 [00:24<00:00,    7.94it/s]
 98%|█████████▊| Computing thresholds ... : 199/204 [00:25<00:00,    7.95it/s]
 98%|█████████▊| Computing thresholds ... : 200/204 [00:25<00:00,    7.94it/s]
 99%|█████████▊| Computing thresholds ... : 201/204 [00:25<00:00,    7.95it/s]
 99%|█████████▉| Computing thresholds ... : 202/204 [00:25<00:00,    7.95it/s]
100%|█████████▉| Computing thresholds ... : 203/204 [00:25<00:00,    7.95it/s]
100%|██████████| Computing thresholds ... : 204/204 [00:25<00:00,    7.96it/s]
100%|██████████| Computing thresholds ... : 204/204 [00:25<00:00,    7.94it/s]



  0%|          | Repairing epochs : 0/72 [00:00<?,       ?it/s]


  1%|▏         | Repairing epochs : 1/72 [00:00<00:03,   19.33it/s]


  3%|▎         | Repairing epochs : 2/72 [00:00<00:03,   20.75it/s]


  4%|▍         | Repairing epochs : 3/72 [00:00<00:03,   21.25it/s]


  6%|▌         | Repairing epochs : 4/72 [00:00<00:03,   20.91it/s]


  7%|▋         | Repairing epochs : 5/72 [00:00<00:04,   13.94it/s]


  8%|▊         | Repairing epochs : 6/72 [00:00<00:04,   14.99it/s]


 10%|▉         | Repairing epochs : 7/72 [00:00<00:04,   15.87it/s]


 11%|█         | Repairing epochs : 8/72 [00:00<00:03,   16.58it/s]


 12%|█▎        | Repairing epochs : 9/72 [00:00<00:03,   17.19it/s]


 14%|█▍        | Repairing epochs : 10/72 [00:00<00:03,   17.57it/s]


 15%|█▌        | Repairing epochs : 11/72 [00:00<00:03,   18.00it/s]


 17%|█▋        | Repairing epochs : 12/72 [00:00<00:03,   18.39it/s]


 18%|█▊        | Repairing epochs : 13/72 [00:00<00:03,   18.75it/s]


 19%|█▉        | Repairing epochs : 14/72 [00:00<00:03,   19.05it/s]


 21%|██        | Repairing epochs : 15/72 [00:00<00:02,   19.17it/s]


 22%|██▏       | Repairing epochs : 16/72 [00:00<00:02,   19.42it/s]


 24%|██▎       | Repairing epochs : 17/72 [00:00<00:02,   19.64it/s]


 25%|██▌       | Repairing epochs : 18/72 [00:00<00:02,   19.83it/s]


 26%|██▋       | Repairing epochs : 19/72 [00:00<00:02,   20.01it/s]


 28%|██▊       | Repairing epochs : 20/72 [00:01<00:02,   20.04it/s]


 29%|██▉       | Repairing epochs : 21/72 [00:01<00:02,   20.18it/s]


 31%|███       | Repairing epochs : 22/72 [00:01<00:02,   20.32it/s]


 32%|███▏      | Repairing epochs : 23/72 [00:01<00:02,   20.40it/s]


 33%|███▎      | Repairing epochs : 24/72 [00:01<00:02,   20.51it/s]


 35%|███▍      | Repairing epochs : 25/72 [00:01<00:02,   20.51it/s]


 36%|███▌      | Repairing epochs : 26/72 [00:01<00:02,   20.61it/s]


 38%|███▊      | Repairing epochs : 27/72 [00:01<00:02,   20.71it/s]


 39%|███▉      | Repairing epochs : 28/72 [00:01<00:02,   20.80it/s]


 40%|████      | Repairing epochs : 29/72 [00:01<00:02,   20.90it/s]


 42%|████▏     | Repairing epochs : 30/72 [00:01<00:02,   20.99it/s]


 43%|████▎     | Repairing epochs : 31/72 [00:01<00:01,   20.96it/s]


 44%|████▍     | Repairing epochs : 32/72 [00:01<00:01,   21.03it/s]


 46%|████▌     | Repairing epochs : 33/72 [00:01<00:01,   21.10it/s]


 47%|████▋     | Repairing epochs : 34/72 [00:01<00:01,   21.17it/s]


 49%|████▊     | Repairing epochs : 35/72 [00:01<00:01,   21.25it/s]


 50%|█████     | Repairing epochs : 36/72 [00:01<00:01,   21.20it/s]


 51%|█████▏    | Repairing epochs : 37/72 [00:01<00:01,   21.26it/s]


 53%|█████▎    | Repairing epochs : 38/72 [00:01<00:01,   21.32it/s]


 54%|█████▍    | Repairing epochs : 39/72 [00:01<00:01,   21.37it/s]


 56%|█████▌    | Repairing epochs : 40/72 [00:01<00:01,   21.42it/s]


 57%|█████▋    | Repairing epochs : 41/72 [00:01<00:01,   21.38it/s]


 58%|█████▊    | Repairing epochs : 42/72 [00:02<00:01,   21.43it/s]


 60%|█████▉    | Repairing epochs : 43/72 [00:02<00:01,   21.47it/s]


 61%|██████    | Repairing epochs : 44/72 [00:02<00:01,   21.53it/s]


 62%|██████▎   | Repairing epochs : 45/72 [00:02<00:01,   21.58it/s]


 64%|██████▍   | Repairing epochs : 46/72 [00:02<00:01,   21.51it/s]


 65%|██████▌   | Repairing epochs : 47/72 [00:02<00:01,   21.55it/s]


 67%|██████▋   | Repairing epochs : 48/72 [00:02<00:01,   21.58it/s]


 68%|██████▊   | Repairing epochs : 49/72 [00:02<00:01,   21.61it/s]


 69%|██████▉   | Repairing epochs : 50/72 [00:02<00:01,   21.67it/s]


 71%|███████   | Repairing epochs : 51/72 [00:02<00:00,   21.60it/s]


 72%|███████▏  | Repairing epochs : 52/72 [00:02<00:00,   21.64it/s]


 74%|███████▎  | Repairing epochs : 53/72 [00:02<00:00,   21.68it/s]


 75%|███████▌  | Repairing epochs : 54/72 [00:02<00:00,   21.72it/s]


 76%|███████▋  | Repairing epochs : 55/72 [00:02<00:00,   21.76it/s]


 78%|███████▊  | Repairing epochs : 56/72 [00:02<00:00,   21.69it/s]


 79%|███████▉  | Repairing epochs : 57/72 [00:02<00:00,   21.71it/s]


 81%|████████  | Repairing epochs : 58/72 [00:02<00:00,   21.74it/s]


 82%|████████▏ | Repairing epochs : 59/72 [00:02<00:00,   21.76it/s]


 83%|████████▎ | Repairing epochs : 60/72 [00:02<00:00,   21.79it/s]


 85%|████████▍ | Repairing epochs : 61/72 [00:02<00:00,   21.83it/s]


 86%|████████▌ | Repairing epochs : 62/72 [00:02<00:00,   21.76it/s]


 88%|████████▊ | Repairing epochs : 63/72 [00:02<00:00,   21.78it/s]


 89%|████████▉ | Repairing epochs : 64/72 [00:03<00:00,   21.81it/s]


 90%|█████████ | Repairing epochs : 65/72 [00:03<00:00,   21.83it/s]


 92%|█████████▏| Repairing epochs : 66/72 [00:03<00:00,   21.87it/s]


 93%|█████████▎| Repairing epochs : 67/72 [00:03<00:00,   21.80it/s]


 94%|█████████▍| Repairing epochs : 68/72 [00:03<00:00,   21.83it/s]


 96%|█████████▌| Repairing epochs : 69/72 [00:03<00:00,   21.85it/s]


 97%|█████████▋| Repairing epochs : 70/72 [00:03<00:00,   21.87it/s]


 99%|█████████▊| Repairing epochs : 71/72 [00:03<00:00,   21.88it/s]


100%|██████████| Repairing epochs : 72/72 [00:03<00:00,   21.79it/s]
100%|██████████| Repairing epochs : 72/72 [00:03<00:00,   21.15it/s]


  0%|          | n_interp : 0/3 [00:00<?,       ?it/s]


  0%|          | Repairing epochs : 0/72 [00:00<?,       ?it/s]


  1%|▏         | Repairing epochs : 1/72 [00:00<00:17,    4.06it/s]


  3%|▎         | Repairing epochs : 2/72 [00:00<00:18,    3.75it/s]


  4%|▍         | Repairing epochs : 3/72 [00:00<00:17,    3.96it/s]


  6%|▌         | Repairing epochs : 4/72 [00:00<00:16,    4.07it/s]


  7%|▋         | Repairing epochs : 5/72 [00:01<00:16,    4.12it/s]


  8%|▊         | Repairing epochs : 6/72 [00:01<00:15,    4.17it/s]


 10%|▉         | Repairing epochs : 7/72 [00:01<00:15,    4.20it/s]


 11%|█         | Repairing epochs : 8/72 [00:01<00:15,    4.23it/s]


 12%|█▎        | Repairing epochs : 9/72 [00:02<00:14,    4.24it/s]


 14%|█▍        | Repairing epochs : 10/72 [00:02<00:14,    4.26it/s]


 15%|█▌        | Repairing epochs : 11/72 [00:02<00:14,    4.27it/s]


 17%|█▋        | Repairing epochs : 12/72 [00:02<00:13,    4.29it/s]


 18%|█▊        | Repairing epochs : 13/72 [00:03<00:13,    4.30it/s]


 19%|█▉        | Repairing epochs : 14/72 [00:03<00:13,    4.30it/s]


 21%|██        | Repairing epochs : 15/72 [00:03<00:13,    4.31it/s]


 22%|██▏       | Repairing epochs : 16/72 [00:03<00:12,    4.32it/s]


 24%|██▎       | Repairing epochs : 17/72 [00:03<00:12,    4.32it/s]


 25%|██▌       | Repairing epochs : 18/72 [00:04<00:12,    4.32it/s]


 26%|██▋       | Repairing epochs : 19/72 [00:04<00:12,    4.33it/s]


 28%|██▊       | Repairing epochs : 20/72 [00:04<00:12,    4.33it/s]


 29%|██▉       | Repairing epochs : 21/72 [00:04<00:11,    4.33it/s]


 31%|███       | Repairing epochs : 22/72 [00:05<00:11,    4.33it/s]


 32%|███▏      | Repairing epochs : 23/72 [00:05<00:11,    4.33it/s]


 33%|███▎      | Repairing epochs : 24/72 [00:05<00:11,    4.34it/s]


 35%|███▍      | Repairing epochs : 25/72 [00:05<00:10,    4.34it/s]


 36%|███▌      | Repairing epochs : 26/72 [00:06<00:10,    4.35it/s]


 38%|███▊      | Repairing epochs : 27/72 [00:06<00:10,    4.35it/s]


 39%|███▉      | Repairing epochs : 28/72 [00:06<00:10,    4.35it/s]


 40%|████      | Repairing epochs : 29/72 [00:06<00:09,    4.34it/s]


 42%|████▏     | Repairing epochs : 30/72 [00:06<00:09,    4.34it/s]


 43%|████▎     | Repairing epochs : 31/72 [00:07<00:09,    4.35it/s]


 44%|████▍     | Repairing epochs : 32/72 [00:07<00:09,    4.35it/s]


 46%|████▌     | Repairing epochs : 33/72 [00:07<00:08,    4.34it/s]


 47%|████▋     | Repairing epochs : 34/72 [00:07<00:08,    4.35it/s]


 49%|████▊     | Repairing epochs : 35/72 [00:08<00:08,    4.35it/s]


 50%|█████     | Repairing epochs : 36/72 [00:08<00:08,    4.35it/s]


 51%|█████▏    | Repairing epochs : 37/72 [00:08<00:08,    4.35it/s]


 53%|█████▎    | Repairing epochs : 38/72 [00:08<00:07,    4.35it/s]


 54%|█████▍    | Repairing epochs : 39/72 [00:08<00:07,    4.36it/s]


 56%|█████▌    | Repairing epochs : 40/72 [00:09<00:07,    4.36it/s]


 57%|█████▋    | Repairing epochs : 41/72 [00:09<00:07,    4.36it/s]


 58%|█████▊    | Repairing epochs : 42/72 [00:09<00:06,    4.36it/s]


 60%|█████▉    | Repairing epochs : 43/72 [00:09<00:06,    4.36it/s]


 61%|██████    | Repairing epochs : 44/72 [00:10<00:06,    4.36it/s]


 62%|██████▎   | Repairing epochs : 45/72 [00:10<00:06,    4.36it/s]


 64%|██████▍   | Repairing epochs : 46/72 [00:10<00:05,    4.36it/s]


 65%|██████▌   | Repairing epochs : 47/72 [00:10<00:05,    4.36it/s]


 67%|██████▋   | Repairing epochs : 48/72 [00:11<00:05,    4.36it/s]


 68%|██████▊   | Repairing epochs : 49/72 [00:11<00:05,    4.36it/s]


 69%|██████▉   | Repairing epochs : 50/72 [00:11<00:05,    4.36it/s]


 71%|███████   | Repairing epochs : 51/72 [00:11<00:04,    4.23it/s]


 72%|███████▏  | Repairing epochs : 52/72 [00:12<00:04,    4.11it/s]


 74%|███████▎  | Repairing epochs : 53/72 [00:12<00:04,    4.12it/s]


 75%|███████▌  | Repairing epochs : 54/72 [00:12<00:04,    4.14it/s]


 76%|███████▋  | Repairing epochs : 55/72 [00:12<00:04,    4.15it/s]


 78%|███████▊  | Repairing epochs : 56/72 [00:13<00:03,    4.16it/s]


 79%|███████▉  | Repairing epochs : 57/72 [00:13<00:03,    4.16it/s]


 81%|████████  | Repairing epochs : 58/72 [00:13<00:03,    4.17it/s]


 82%|████████▏ | Repairing epochs : 59/72 [00:13<00:03,    4.19it/s]


 83%|████████▎ | Repairing epochs : 60/72 [00:14<00:02,    4.20it/s]


 85%|████████▍ | Repairing epochs : 61/72 [00:14<00:02,    4.20it/s]


 86%|████████▌ | Repairing epochs : 62/72 [00:14<00:02,    4.21it/s]


 88%|████████▊ | Repairing epochs : 63/72 [00:14<00:02,    4.22it/s]


 89%|████████▉ | Repairing epochs : 64/72 [00:14<00:01,    4.23it/s]


 90%|█████████ | Repairing epochs : 65/72 [00:15<00:01,    4.24it/s]


 92%|█████████▏| Repairing epochs : 66/72 [00:15<00:01,    4.24it/s]


 93%|█████████▎| Repairing epochs : 67/72 [00:15<00:01,    4.25it/s]


 94%|█████████▍| Repairing epochs : 68/72 [00:15<00:00,    4.26it/s]


 96%|█████████▌| Repairing epochs : 69/72 [00:16<00:00,    4.26it/s]


 97%|█████████▋| Repairing epochs : 70/72 [00:16<00:00,    4.27it/s]


 99%|█████████▊| Repairing epochs : 71/72 [00:16<00:00,    4.28it/s]


100%|██████████| Repairing epochs : 72/72 [00:16<00:00,    4.29it/s]
100%|██████████| Repairing epochs : 72/72 [00:16<00:00,    4.28it/s]




  0%|          | Fold : 0/10 [00:00<?,       ?it/s]



 10%|█         | Fold : 1/10 [00:00<00:02,    3.15it/s]



 20%|██        | Fold : 2/10 [00:00<00:02,    3.27it/s]



 30%|███       | Fold : 3/10 [00:00<00:02,    3.36it/s]



 40%|████      | Fold : 4/10 [00:01<00:01,    3.08it/s]



 50%|█████     | Fold : 5/10 [00:01<00:01,    3.17it/s]



 60%|██████    | Fold : 6/10 [00:01<00:01,    3.23it/s]



 70%|███████   | Fold : 7/10 [00:02<00:00,    3.27it/s]



 80%|████████  | Fold : 8/10 [00:02<00:00,    3.31it/s]



 90%|█████████ | Fold : 9/10 [00:02<00:00,    3.33it/s]



100%|██████████| Fold : 10/10 [00:02<00:00,    3.35it/s]
100%|██████████| Fold : 10/10 [00:02<00:00,    3.33it/s]


 33%|███▎      | n_interp : 1/3 [00:20<00:41,   20.98s/it]


  0%|          | Repairing epochs : 0/72 [00:00<?,       ?it/s]


  1%|▏         | Repairing epochs : 1/72 [00:00<00:19,    3.66it/s]


  3%|▎         | Repairing epochs : 2/72 [00:00<00:17,    3.97it/s]


  4%|▍         | Repairing epochs : 3/72 [00:00<00:16,    4.12it/s]


  6%|▌         | Repairing epochs : 4/72 [00:00<00:16,    4.04it/s]


  7%|▋         | Repairing epochs : 5/72 [00:01<00:18,    3.67it/s]


  8%|▊         | Repairing epochs : 6/72 [00:01<00:19,    3.45it/s]


 10%|▉         | Repairing epochs : 7/72 [00:02<00:19,    3.30it/s]


 11%|█         | Repairing epochs : 8/72 [00:02<00:19,    3.20it/s]


 12%|█▎        | Repairing epochs : 9/72 [00:02<00:18,    3.32it/s]


 14%|█▍        | Repairing epochs : 10/72 [00:02<00:18,    3.43it/s]


 15%|█▌        | Repairing epochs : 11/72 [00:03<00:17,    3.52it/s]


 17%|█▋        | Repairing epochs : 12/72 [00:03<00:16,    3.61it/s]


 18%|█▊        | Repairing epochs : 13/72 [00:03<00:16,    3.68it/s]


 19%|█▉        | Repairing epochs : 14/72 [00:03<00:15,    3.74it/s]


 21%|██        | Repairing epochs : 15/72 [00:04<00:15,    3.79it/s]


 22%|██▏       | Repairing epochs : 16/72 [00:04<00:14,    3.84it/s]


 24%|██▎       | Repairing epochs : 17/72 [00:04<00:14,    3.88it/s]


 25%|██▌       | Repairing epochs : 18/72 [00:04<00:13,    3.92it/s]


 26%|██▋       | Repairing epochs : 19/72 [00:04<00:13,    3.95it/s]


 28%|██▊       | Repairing epochs : 20/72 [00:05<00:13,    3.98it/s]


 29%|██▉       | Repairing epochs : 21/72 [00:05<00:12,    4.01it/s]


 31%|███       | Repairing epochs : 22/72 [00:05<00:12,    4.03it/s]


 32%|███▏      | Repairing epochs : 23/72 [00:05<00:12,    4.06it/s]


 33%|███▎      | Repairing epochs : 24/72 [00:06<00:11,    4.08it/s]


 35%|███▍      | Repairing epochs : 25/72 [00:06<00:11,    4.09it/s]


 36%|███▌      | Repairing epochs : 26/72 [00:06<00:11,    4.11it/s]


 38%|███▊      | Repairing epochs : 27/72 [00:06<00:10,    4.13it/s]


 39%|███▉      | Repairing epochs : 28/72 [00:06<00:10,    4.15it/s]


 40%|████      | Repairing epochs : 29/72 [00:07<00:10,    4.16it/s]


 42%|████▏     | Repairing epochs : 30/72 [00:07<00:10,    4.18it/s]


 43%|████▎     | Repairing epochs : 31/72 [00:07<00:09,    4.19it/s]


 44%|████▍     | Repairing epochs : 32/72 [00:07<00:09,    4.21it/s]


 46%|████▌     | Repairing epochs : 33/72 [00:08<00:09,    4.21it/s]


 47%|████▋     | Repairing epochs : 34/72 [00:08<00:09,    4.13it/s]


 49%|████▊     | Repairing epochs : 35/72 [00:08<00:09,    4.09it/s]


 50%|█████     | Repairing epochs : 36/72 [00:08<00:08,    4.09it/s]


 51%|█████▏    | Repairing epochs : 37/72 [00:09<00:08,    4.10it/s]


 53%|█████▎    | Repairing epochs : 38/72 [00:09<00:08,    4.12it/s]


 54%|█████▍    | Repairing epochs : 39/72 [00:09<00:07,    4.14it/s]


 56%|█████▌    | Repairing epochs : 40/72 [00:09<00:07,    4.15it/s]


 57%|█████▋    | Repairing epochs : 41/72 [00:10<00:07,    4.17it/s]


 58%|█████▊    | Repairing epochs : 42/72 [00:10<00:07,    4.18it/s]


 60%|█████▉    | Repairing epochs : 43/72 [00:10<00:06,    4.19it/s]


 61%|██████    | Repairing epochs : 44/72 [00:10<00:06,    4.20it/s]


 62%|██████▎   | Repairing epochs : 45/72 [00:11<00:06,    4.22it/s]


 64%|██████▍   | Repairing epochs : 46/72 [00:11<00:06,    4.22it/s]


 65%|██████▌   | Repairing epochs : 47/72 [00:11<00:05,    4.23it/s]


 67%|██████▋   | Repairing epochs : 48/72 [00:11<00:05,    4.24it/s]


 68%|██████▊   | Repairing epochs : 49/72 [00:11<00:05,    4.25it/s]


 69%|██████▉   | Repairing epochs : 50/72 [00:12<00:05,    4.26it/s]


 71%|███████   | Repairing epochs : 51/72 [00:12<00:04,    4.27it/s]


 72%|███████▏  | Repairing epochs : 52/72 [00:12<00:04,    4.28it/s]


 74%|███████▎  | Repairing epochs : 53/72 [00:12<00:04,    4.29it/s]


 75%|███████▌  | Repairing epochs : 54/72 [00:13<00:04,    4.29it/s]


 76%|███████▋  | Repairing epochs : 55/72 [00:13<00:03,    4.30it/s]


 78%|███████▊  | Repairing epochs : 56/72 [00:13<00:03,    4.31it/s]


 79%|███████▉  | Repairing epochs : 57/72 [00:13<00:03,    4.31it/s]


 81%|████████  | Repairing epochs : 58/72 [00:13<00:03,    4.32it/s]


 82%|████████▏ | Repairing epochs : 59/72 [00:14<00:03,    4.32it/s]


 83%|████████▎ | Repairing epochs : 60/72 [00:14<00:02,    4.33it/s]


 85%|████████▍ | Repairing epochs : 61/72 [00:14<00:02,    4.33it/s]


 86%|████████▌ | Repairing epochs : 62/72 [00:14<00:02,    4.34it/s]


 88%|████████▊ | Repairing epochs : 63/72 [00:15<00:02,    4.35it/s]


 89%|████████▉ | Repairing epochs : 64/72 [00:15<00:01,    4.35it/s]


 90%|█████████ | Repairing epochs : 65/72 [00:15<00:01,    4.35it/s]


 92%|█████████▏| Repairing epochs : 66/72 [00:15<00:01,    4.35it/s]


 93%|█████████▎| Repairing epochs : 67/72 [00:16<00:01,    4.35it/s]


 94%|█████████▍| Repairing epochs : 68/72 [00:16<00:00,    4.36it/s]


 96%|█████████▌| Repairing epochs : 69/72 [00:16<00:00,    4.36it/s]


 97%|█████████▋| Repairing epochs : 70/72 [00:16<00:00,    4.36it/s]


 99%|█████████▊| Repairing epochs : 71/72 [00:16<00:00,    4.36it/s]


100%|██████████| Repairing epochs : 72/72 [00:17<00:00,    4.37it/s]
100%|██████████| Repairing epochs : 72/72 [00:17<00:00,    4.20it/s]




  0%|          | Fold : 0/10 [00:00<?,       ?it/s]



 10%|█         | Fold : 1/10 [00:00<00:02,    3.14it/s]



 20%|██        | Fold : 2/10 [00:00<00:02,    3.23it/s]



 30%|███       | Fold : 3/10 [00:00<00:02,    3.31it/s]



 40%|████      | Fold : 4/10 [00:01<00:01,    3.37it/s]



 50%|█████     | Fold : 5/10 [00:01<00:01,    3.40it/s]



 60%|██████    | Fold : 6/10 [00:01<00:01,    3.42it/s]



 70%|███████   | Fold : 7/10 [00:02<00:00,    3.43it/s]



 80%|████████  | Fold : 8/10 [00:02<00:00,    3.44it/s]



 90%|█████████ | Fold : 9/10 [00:02<00:00,    3.44it/s]



100%|██████████| Fold : 10/10 [00:02<00:00,    3.44it/s]
100%|██████████| Fold : 10/10 [00:02<00:00,    3.43it/s]


 67%|██████▋   | n_interp : 2/3 [00:42<00:21,   21.06s/it]


  0%|          | Repairing epochs : 0/72 [00:00<?,       ?it/s]


  1%|▏         | Repairing epochs : 1/72 [00:00<00:20,    3.47it/s]


  3%|▎         | Repairing epochs : 2/72 [00:00<00:18,    3.88it/s]


  4%|▍         | Repairing epochs : 3/72 [00:00<00:16,    4.11it/s]


  6%|▌         | Repairing epochs : 4/72 [00:00<00:16,    4.23it/s]


  7%|▋         | Repairing epochs : 5/72 [00:01<00:15,    4.32it/s]


  8%|▊         | Repairing epochs : 6/72 [00:01<00:15,    4.38it/s]


 10%|▉         | Repairing epochs : 7/72 [00:01<00:14,    4.39it/s]


 11%|█         | Repairing epochs : 8/72 [00:01<00:14,    4.43it/s]


 12%|█▎        | Repairing epochs : 9/72 [00:02<00:14,    4.45it/s]


 14%|█▍        | Repairing epochs : 10/72 [00:02<00:13,    4.48it/s]


 15%|█▌        | Repairing epochs : 11/72 [00:02<00:13,    4.51it/s]


 17%|█▋        | Repairing epochs : 12/72 [00:02<00:13,    4.52it/s]


 18%|█▊        | Repairing epochs : 13/72 [00:02<00:13,    4.54it/s]


 19%|█▉        | Repairing epochs : 14/72 [00:03<00:12,    4.55it/s]


 21%|██        | Repairing epochs : 15/72 [00:03<00:12,    4.57it/s]


 22%|██▏       | Repairing epochs : 16/72 [00:03<00:12,    4.42it/s]


 24%|██▎       | Repairing epochs : 17/72 [00:03<00:12,    4.42it/s]


 25%|██▌       | Repairing epochs : 18/72 [00:04<00:12,    4.43it/s]


 26%|██▋       | Repairing epochs : 19/72 [00:04<00:11,    4.43it/s]


 28%|██▊       | Repairing epochs : 20/72 [00:04<00:11,    4.44it/s]


 29%|██▉       | Repairing epochs : 21/72 [00:04<00:11,    4.45it/s]


 31%|███       | Repairing epochs : 22/72 [00:04<00:11,    4.46it/s]


 32%|███▏      | Repairing epochs : 23/72 [00:05<00:10,    4.46it/s]


 33%|███▎      | Repairing epochs : 24/72 [00:05<00:10,    4.46it/s]


 35%|███▍      | Repairing epochs : 25/72 [00:05<00:10,    4.47it/s]


 36%|███▌      | Repairing epochs : 26/72 [00:05<00:10,    4.48it/s]


 38%|███▊      | Repairing epochs : 27/72 [00:06<00:10,    4.48it/s]


 39%|███▉      | Repairing epochs : 28/72 [00:06<00:09,    4.49it/s]


 40%|████      | Repairing epochs : 29/72 [00:06<00:09,    4.49it/s]


 42%|████▏     | Repairing epochs : 30/72 [00:06<00:09,    4.49it/s]


 43%|████▎     | Repairing epochs : 31/72 [00:06<00:09,    4.49it/s]


 44%|████▍     | Repairing epochs : 32/72 [00:07<00:08,    4.49it/s]


 46%|████▌     | Repairing epochs : 33/72 [00:07<00:08,    4.48it/s]


 47%|████▋     | Repairing epochs : 34/72 [00:07<00:08,    4.49it/s]


 49%|████▊     | Repairing epochs : 35/72 [00:07<00:08,    4.49it/s]


 50%|█████     | Repairing epochs : 36/72 [00:08<00:08,    4.49it/s]


 51%|█████▏    | Repairing epochs : 37/72 [00:08<00:07,    4.49it/s]


 53%|█████▎    | Repairing epochs : 38/72 [00:08<00:07,    4.49it/s]


 54%|█████▍    | Repairing epochs : 39/72 [00:08<00:07,    4.49it/s]


 56%|█████▌    | Repairing epochs : 40/72 [00:08<00:07,    4.49it/s]


 57%|█████▋    | Repairing epochs : 41/72 [00:09<00:06,    4.49it/s]


 58%|█████▊    | Repairing epochs : 42/72 [00:09<00:06,    4.50it/s]


 60%|█████▉    | Repairing epochs : 43/72 [00:09<00:06,    4.50it/s]


 61%|██████    | Repairing epochs : 44/72 [00:09<00:06,    4.50it/s]


 62%|██████▎   | Repairing epochs : 45/72 [00:10<00:05,    4.50it/s]


 64%|██████▍   | Repairing epochs : 46/72 [00:10<00:05,    4.51it/s]


 65%|██████▌   | Repairing epochs : 47/72 [00:10<00:05,    4.51it/s]


 67%|██████▋   | Repairing epochs : 48/72 [00:10<00:05,    4.52it/s]


 68%|██████▊   | Repairing epochs : 49/72 [00:10<00:05,    4.53it/s]


 69%|██████▉   | Repairing epochs : 50/72 [00:11<00:04,    4.53it/s]


 71%|███████   | Repairing epochs : 51/72 [00:11<00:04,    4.53it/s]


 72%|███████▏  | Repairing epochs : 52/72 [00:11<00:04,    4.53it/s]


 74%|███████▎  | Repairing epochs : 53/72 [00:11<00:04,    4.53it/s]


 75%|███████▌  | Repairing epochs : 54/72 [00:11<00:03,    4.54it/s]


 76%|███████▋  | Repairing epochs : 55/72 [00:12<00:03,    4.53it/s]


 78%|███████▊  | Repairing epochs : 56/72 [00:12<00:03,    4.53it/s]


 79%|███████▉  | Repairing epochs : 57/72 [00:12<00:03,    4.52it/s]


 81%|████████  | Repairing epochs : 58/72 [00:12<00:03,    4.53it/s]


 82%|████████▏ | Repairing epochs : 59/72 [00:13<00:02,    4.53it/s]


 83%|████████▎ | Repairing epochs : 60/72 [00:13<00:02,    4.53it/s]


 85%|████████▍ | Repairing epochs : 61/72 [00:13<00:02,    4.53it/s]


 86%|████████▌ | Repairing epochs : 62/72 [00:13<00:02,    4.52it/s]


 88%|████████▊ | Repairing epochs : 63/72 [00:13<00:01,    4.52it/s]


 89%|████████▉ | Repairing epochs : 64/72 [00:14<00:01,    4.53it/s]


 90%|█████████ | Repairing epochs : 65/72 [00:14<00:01,    4.53it/s]


 92%|█████████▏| Repairing epochs : 66/72 [00:14<00:01,    4.53it/s]


 93%|█████████▎| Repairing epochs : 67/72 [00:14<00:01,    4.53it/s]


 94%|█████████▍| Repairing epochs : 68/72 [00:15<00:00,    4.52it/s]


 96%|█████████▌| Repairing epochs : 69/72 [00:15<00:00,    4.52it/s]


 97%|█████████▋| Repairing epochs : 70/72 [00:15<00:00,    4.53it/s]


 99%|█████████▊| Repairing epochs : 71/72 [00:15<00:00,    4.52it/s]


100%|██████████| Repairing epochs : 72/72 [00:15<00:00,    4.52it/s]
100%|██████████| Repairing epochs : 72/72 [00:15<00:00,    4.50it/s]




  0%|          | Fold : 0/10 [00:00<?,       ?it/s]



 10%|█         | Fold : 1/10 [00:00<00:02,    3.62it/s]



 20%|██        | Fold : 2/10 [00:00<00:02,    3.69it/s]



 30%|███       | Fold : 3/10 [00:00<00:01,    3.75it/s]



 40%|████      | Fold : 4/10 [00:01<00:01,    3.78it/s]



 50%|█████     | Fold : 5/10 [00:01<00:01,    3.81it/s]



 60%|██████    | Fold : 6/10 [00:01<00:01,    3.82it/s]



 70%|███████   | Fold : 7/10 [00:01<00:00,    3.82it/s]



 80%|████████  | Fold : 8/10 [00:02<00:00,    3.82it/s]



 90%|█████████ | Fold : 9/10 [00:02<00:00,    3.83it/s]



100%|██████████| Fold : 10/10 [00:02<00:00,    3.82it/s]
100%|██████████| Fold : 10/10 [00:02<00:00,    3.82it/s]


100%|██████████| n_interp : 3/3 [01:00<00:00,   20.28s/it]
100%|██████████| n_interp : 3/3 [01:00<00:00,   20.32s/it]




Estimated consensus=0.50 and n_interpolate=4



  0%|          | Repairing epochs : 0/72 [00:00<?,       ?it/s]


  1%|▏         | Repairing epochs : 1/72 [00:00<00:13,    5.30it/s]


  3%|▎         | Repairing epochs : 2/72 [00:00<00:14,    4.85it/s]


  4%|▍         | Repairing epochs : 3/72 [00:00<00:14,    4.71it/s]


  6%|▌         | Repairing epochs : 4/72 [00:00<00:14,    4.63it/s]


  7%|▋         | Repairing epochs : 5/72 [00:01<00:14,    4.59it/s]


  8%|▊         | Repairing epochs : 6/72 [00:01<00:14,    4.55it/s]


 10%|▉         | Repairing epochs : 7/72 [00:01<00:14,    4.54it/s]


 11%|█         | Repairing epochs : 8/72 [00:01<00:14,    4.52it/s]


 12%|█▎        | Repairing epochs : 9/72 [00:01<00:13,    4.51it/s]


 14%|█▍        | Repairing epochs : 10/72 [00:02<00:13,    4.50it/s]


 15%|█▌        | Repairing epochs : 11/72 [00:02<00:13,    4.49it/s]


 17%|█▋        | Repairing epochs : 12/72 [00:02<00:13,    4.48it/s]


 18%|█▊        | Repairing epochs : 13/72 [00:02<00:13,    4.47it/s]


 19%|█▉        | Repairing epochs : 14/72 [00:03<00:12,    4.47it/s]


 21%|██        | Repairing epochs : 15/72 [00:03<00:12,    4.47it/s]


 22%|██▏       | Repairing epochs : 16/72 [00:03<00:12,    4.46it/s]


 24%|██▎       | Repairing epochs : 17/72 [00:03<00:12,    4.46it/s]


 25%|██▌       | Repairing epochs : 18/72 [00:04<00:12,    4.45it/s]


 26%|██▋       | Repairing epochs : 19/72 [00:04<00:12,    4.36it/s]


 28%|██▊       | Repairing epochs : 20/72 [00:04<00:12,    4.17it/s]


 29%|██▉       | Repairing epochs : 21/72 [00:05<00:12,    4.02it/s]


 31%|███       | Repairing epochs : 22/72 [00:05<00:12,    4.05it/s]


 32%|███▏      | Repairing epochs : 23/72 [00:05<00:12,    4.08it/s]


 33%|███▎      | Repairing epochs : 24/72 [00:05<00:11,    4.10it/s]


 35%|███▍      | Repairing epochs : 25/72 [00:05<00:11,    4.11it/s]


 36%|███▌      | Repairing epochs : 26/72 [00:06<00:11,    4.13it/s]


 38%|███▊      | Repairing epochs : 27/72 [00:06<00:10,    4.16it/s]


 39%|███▉      | Repairing epochs : 28/72 [00:06<00:10,    4.17it/s]


 40%|████      | Repairing epochs : 29/72 [00:06<00:10,    4.19it/s]


 42%|████▏     | Repairing epochs : 30/72 [00:07<00:09,    4.20it/s]


 43%|████▎     | Repairing epochs : 31/72 [00:07<00:09,    4.21it/s]


 44%|████▍     | Repairing epochs : 32/72 [00:07<00:09,    4.23it/s]


 46%|████▌     | Repairing epochs : 33/72 [00:07<00:09,    4.23it/s]


 47%|████▋     | Repairing epochs : 34/72 [00:07<00:08,    4.25it/s]


 49%|████▊     | Repairing epochs : 35/72 [00:08<00:08,    4.26it/s]


 50%|█████     | Repairing epochs : 36/72 [00:08<00:08,    4.27it/s]


 51%|█████▏    | Repairing epochs : 37/72 [00:08<00:08,    4.28it/s]


 53%|█████▎    | Repairing epochs : 38/72 [00:08<00:07,    4.28it/s]


 54%|█████▍    | Repairing epochs : 39/72 [00:09<00:07,    4.29it/s]


 56%|█████▌    | Repairing epochs : 40/72 [00:09<00:07,    4.30it/s]


 57%|█████▋    | Repairing epochs : 41/72 [00:09<00:07,    4.31it/s]


 58%|█████▊    | Repairing epochs : 42/72 [00:09<00:06,    4.31it/s]


 60%|█████▉    | Repairing epochs : 43/72 [00:10<00:06,    4.32it/s]


 61%|██████    | Repairing epochs : 44/72 [00:10<00:06,    4.32it/s]


 62%|██████▎   | Repairing epochs : 45/72 [00:10<00:06,    4.33it/s]


 64%|██████▍   | Repairing epochs : 46/72 [00:10<00:05,    4.34it/s]


 65%|██████▌   | Repairing epochs : 47/72 [00:10<00:05,    4.34it/s]


 67%|██████▋   | Repairing epochs : 48/72 [00:11<00:05,    4.35it/s]


 68%|██████▊   | Repairing epochs : 49/72 [00:11<00:05,    4.35it/s]


 69%|██████▉   | Repairing epochs : 50/72 [00:11<00:05,    4.35it/s]


 71%|███████   | Repairing epochs : 51/72 [00:11<00:04,    4.36it/s]


 72%|███████▏  | Repairing epochs : 52/72 [00:12<00:04,    4.36it/s]


 74%|███████▎  | Repairing epochs : 53/72 [00:12<00:04,    4.26it/s]


 75%|███████▌  | Repairing epochs : 54/72 [00:12<00:04,    4.27it/s]


 76%|███████▋  | Repairing epochs : 55/72 [00:12<00:03,    4.28it/s]


 78%|███████▊  | Repairing epochs : 56/72 [00:13<00:03,    4.28it/s]


 79%|███████▉  | Repairing epochs : 57/72 [00:13<00:03,    4.29it/s]


 81%|████████  | Repairing epochs : 58/72 [00:13<00:03,    4.30it/s]


 82%|████████▏ | Repairing epochs : 59/72 [00:13<00:03,    4.30it/s]


 83%|████████▎ | Repairing epochs : 60/72 [00:13<00:02,    4.31it/s]


 85%|████████▍ | Repairing epochs : 61/72 [00:14<00:02,    4.32it/s]


 86%|████████▌ | Repairing epochs : 62/72 [00:14<00:02,    4.32it/s]


 88%|████████▊ | Repairing epochs : 63/72 [00:14<00:02,    4.33it/s]


 89%|████████▉ | Repairing epochs : 64/72 [00:14<00:01,    4.33it/s]


 90%|█████████ | Repairing epochs : 65/72 [00:15<00:01,    4.34it/s]


 92%|█████████▏| Repairing epochs : 66/72 [00:15<00:01,    4.35it/s]


 93%|█████████▎| Repairing epochs : 67/72 [00:15<00:01,    4.35it/s]


 94%|█████████▍| Repairing epochs : 68/72 [00:15<00:00,    4.36it/s]


 96%|█████████▌| Repairing epochs : 69/72 [00:15<00:00,    4.36it/s]


 97%|█████████▋| Repairing epochs : 70/72 [00:16<00:00,    4.37it/s]


 99%|█████████▊| Repairing epochs : 71/72 [00:16<00:00,    4.37it/s]


100%|██████████| Repairing epochs : 72/72 [00:16<00:00,    4.38it/s]
100%|██████████| Repairing epochs : 72/72 [00:16<00:00,    4.33it/s]
No bad epochs were found for your data. Returning a copy of the data you wanted to clean. Interpolation may have been done.

Now, we will manually mark the bad channels just for plotting.

evoked.info['bads'] = ['MEG 2443']
evoked_clean.info['bads'] = ['MEG 2443']

Let us plot the results.

import matplotlib.pyplot as plt  # noqa
set_matplotlib_defaults(plt)

fig, axes = plt.subplots(2, 1, figsize=(6, 6))

for ax in axes:
    ax.tick_params(axis='x', which='both', bottom='off', top='off')
    ax.tick_params(axis='y', which='both', left='off', right='off')

ylim = dict(grad=(-170, 200))
evoked.pick_types(meg='grad', exclude=[])
evoked.plot(exclude=[], axes=axes[0], ylim=ylim, show=False)
axes[0].set_title('Before autoreject')
evoked_clean.pick_types(meg='grad', exclude=[])
evoked_clean.plot(exclude=[], axes=axes[1], ylim=ylim)
axes[1].set_title('After autoreject')
plt.tight_layout()
Before autoreject, After autoreject
NOTE: pick_types() is a legacy function. New code should use inst.pick(...).
NOTE: pick_types() is a legacy function. New code should use inst.pick(...).
/home/circleci/project/examples/plot_auto_repair.py:133: UserWarning: This figure includes Axes that are not compatible with tight_layout, so results might be incorrect.
  plt.tight_layout()

To top things up, we can also visualize the bad sensors for each trial using a heatmap.

ar.get_reject_log(epochs['Auditory/Left']).plot()
plot auto repair
<Figure size 1200x600 with 1 Axes>

Total running time of the script: (2 minutes 35.568 seconds)

Gallery generated by Sphinx-Gallery