Autoreject package , a complement of MNE (Error)

Hello everybody, im new here.

I have been using ICA to preprocess EEG data. I want to use a function from the autoreject package with the following code:

from autoreject import get_rejection_threshold.

reject = get_rejection_threshold(epochs_ica);
reject

but I get the next error:
ModuleNotFoundError: No module named ‘autoreject’.

I need help, what should I do?

Hello @NicolePurkinje and welcome to the forum!

You need to install autoreject as described here:

https://autoreject.github.io/stable/index.html#installation

Best wishes,
Richard

2 Likes

Thank you :blush: !