Erros: ica.decompose_epochs

Hi,

I am trying to to apply ICA on my data, but when I want to decompose
sources for epochs, I get this error:

~/Desktop/ICA/prova.py:56: AttributeError: 'ICA' object has no attribute
'decompose_epochs'

I have installed Scikit-Learn, but I still get this error. How can I solve
it?

Thanks
Emanuela
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20160725/77857571/attachment.html

You seem to be referring to an old API of ICA, take a look at how it works
now:
http://martinos.org/mne/dev/auto_tutorials/plot_artifacts_correction_ica.html

In short, after instantiating the ICA you use the .fit() method to fit it
to the data.
Then you can for example use .get_sources() or mark components as bad and
then .apply() to the data.
?

2016-07-25 18:40 GMT+02:00 Emanuela Liaci <emanuela.liaci at gmail.com>:

Hi,

I want to remove my selected components (.apply) from ICA analysis from the
epochs (created by Epochsarray) but I get this error: 'EpochsArray' object
has no attribute 'apply'. How can I solve this issue?

Many thanks
Emanuela

you need to call the apply method on the ica object. So something like

ica.fit(epochs)
ica.exclude = [7, 12]
ica.apply(epochs)

(not epochs.apply...)

HTH
Alex