[Mne_analysis] Erros: ica.decompose_epochs

Alexandre Gramfort alexandre.gramfort at telecom-paristech.fr
Tue Jul 26 16:01:29 EDT 2016
Search archives:

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

On Tue, Jul 26, 2016 at 9:34 PM, Emanuela Liaci
<emanuela.liaci at gmail.com> wrote:
> 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
>
>
> On Mon, Jul 25, 2016 at 7:07 PM, Mikołaj Magnuski <mmagnuski at swps.edu.pl>
> wrote:
>>
>> 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 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
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Mne_analysis mailing list
>>> Mne_analysis at nmr.mgh.harvard.edu
>>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>>>
>>>
>>> The information in this e-mail is intended only for the person to whom it
>>> is
>>> addressed. If you believe this e-mail was sent to you in error and the
>>> e-mail
>>> contains patient information, please contact the Partners Compliance
>>> HelpLine at
>>> http://www.partners.org/complianceline . If the e-mail was sent to you in
>>> error
>>> but does not contain patient information, please contact the sender and
>>> properly
>>> dispose of the e-mail.
>>>
>>
>>
>> ________________________________
>>
>> _______________________________________________
>> Mne_analysis mailing list
>> Mne_analysis at nmr.mgh.harvard.edu
>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>>
>>
>> The information in this e-mail is intended only for the person to whom it
>> is
>> addressed. If you believe this e-mail was sent to you in error and the
>> e-mail
>> contains patient information, please contact the Partners Compliance
>> HelpLine at
>> http://www.partners.org/complianceline . If the e-mail was sent to you in
>> error
>> but does not contain patient information, please contact the sender and
>> properly
>> dispose of the e-mail.
>>
>
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
>
> The information in this e-mail is intended only for the person to whom it is
> addressed. If you believe this e-mail was sent to you in error and the
> e-mail
> contains patient information, please contact the Partners Compliance
> HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in
> error
> but does not contain patient information, please contact the sender and
> properly
> dispose of the e-mail.
>



More information about the Mne_analysis mailing list