# using the autoreject package

**URL:** <https://mne.discourse.group/t/using-the-autoreject-package/2063>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [February 4, 2020, 6:07pm UTC](https://mne.discourse.group/t/using-the-autoreject-package/2063 "2020-02-04T18:07:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [February 4, 2020, 6:07pm UTC](https://mne.discourse.group/t/using-the-autoreject-package/2063/1 "2020-02-04T18:07:14Z")

</div>

External Email - Use Caution

Hi List:

Excuse me for this naive question.  
Does the "autoreject" take a lot of execution time?  
I downloaded the pip install -U autoreject package.  
On using:  
ar = AutoReject()  
epochs\_clean = ar.fit\_transform(epochs)  
Running autoreject on ch\_type=eeg  
0.00% Creating augmented epochs | ...... Since 20+ mins.  
The epochs object is 32 channel x 1400 epochs x 512 samples.

Should I use the latest version or is something weird in my epoch object.  
The example shared in the website works fine though.

Best regards,  
Neeraj  
-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20200204/3b2d1d60/attachment.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200204/3b2d1d60/attachment.html)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [February 4, 2020, 11:21pm UTC](https://mne.discourse.group/t/using-the-autoreject-package/2063/2 "2020-02-04T23:21:49Z")

</div>

External Email - Use Caution

Hi List,

Following up on this - it got fixed.  
- on seeing the source code found that the location field in my EOG  
channels had NaNs and this was the issue.  
- may be good to through a warning.

Best regards,  
Neeraj

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [February 5, 2020, 7:23am UTC](https://mne.discourse.group/t/using-the-autoreject-package/2063/3 "2020-02-05T07:23:35Z")

</div>

External Email - Use Caution

Hi Neeraj,

Glad to see that you fixed it yourself. Could you raise an issue on github  
so we raise an informative error for the user? We'll follow up on it there,  
thanks a lot.

Mainak
