mne.preprocessing.Xdawn

External Email - Use Caution

I want to use Xdawn filtering from mne.preprocessing.Xdawn
I used CSP (doesn't work on ERPs) before but I want to try the Xdawn
spatial filter. I read that it's applied on ERP data. I have epoched
EEG-Data with labels (for every class) but not as ERPs. So from class
one i have 5 trials they all have the same label and so on for the
other classes. Does Xdawn calculate the ERP itself or should I make
ERPs before using the Xdawn filtering?

External Email - Use Caution

hi,

you should try to follow this example:

https://martinos.org/mne/stable/auto_examples/decoding/plot_decoding_xdawn_eeg.html

HTH
Alex