[Mne_analysis] Ica using picard

Eric Larson larson.eric.d at gmail.com
Thu Oct 3 11:37:32 EDT 2019
Search archives:

        External Email - Use Caution        

You should be able to `pip install python-picard` to get the `picard` ICA
package. If you used the `environment.yml` or `requirements.txt` from the
MNE repo to set up your env, it should have been included, though.

Eric


On Thu, Oct 3, 2019 at 11:28 AM 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/cf0d12c5/attachment-0001.html 


More information about the Mne_analysis mailing list