[Mne_analysis] Ica using picard

Alexandre Gramfort alexandre.gramfort at inria.fr
Thu Oct 3 11:34:30 EDT 2019
Search archives:

        External Email - Use Caution        

hi Dirk,

pip install python-picard

should fix it.

HTH
Alex


On Thu, Oct 3, 2019 at 5:28 PM Dirk van Moorselaar <
dirkvanmoorselaar at gmail.com> wrote:

>         External Email - Use Caution
>
> Hi,
>
> I have updated mne to version 19. I am now playing around with ICA and I
> wanted to see how the Picard method would behave on my data. However, when
> I try to run this method using the following commands:
>
> ica = ICA(n_components=picks.size, method=method)
> # ica is fitted on epoched data (stored in self)
> ica.fit(self, picks=picks, decim=decim)
>
> I get a ModuleNotFoundError:
>
> ~/anaconda2/envs/mne3/lib/python3.7/site-packages/mne/preprocessing/ica.py
> in _fit(self, data, max_pca_components, fit_type)
>     678                                             **self.fit_params)
>     679         elif self.method == 'picard':
> --> 680             from picard import picard
>     681             _, W, _ = picard(data[:, sel].T, whiten=False,
>     682                              random_state=random_state,
> **self.fit_params)
>
> ModuleNotFoundError: No module named 'picard'
>
> What am I doing wrong here or is something wrong with my installation?
>
> Cheers,
>
> Dirk
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20191003/ffce48b3/attachment.html 


More information about the Mne_analysis mailing list