Skip to content

[MRG] Deprecate extended-infomax method - #5962

Merged
larsoner merged 8 commits into
mne-tools:masterfrom
cbrnr:picard_extended
Feb 21, 2019
Merged

larsoner merged 8 commits into
mne-tools:masterfrom
cbrnr:picard_extended

Conversation

@cbrnr

@cbrnr cbrnr commented Feb 20, 2019

Copy link
Copy Markdown
Contributor

Picard has a new extended argument (which will hopefully be on PyPI soon), but MNE currently does not allow this argument in the fit_params dict. I have removed this check.

On a related note, is there a specific reason why some Picard arguments are explicitly set although they are identical to the defaults (ortho and fun)? Also, why does MNE set tol to 1e-5 instead of using the default of 1e-7?

@pierreablin WDYT?

@codecov

codecov Bot commented Feb 20, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #5962 into master will increase coverage by 0.02%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master    #5962      +/-   ##
==========================================
+ Coverage   88.79%   88.82%   +0.02%     
==========================================
  Files         401      401              
  Lines       72721    72836     +115     
  Branches    12158    12170      +12     
==========================================
+ Hits        64575    64697     +122     
  Misses       5218     5218              
+ Partials     2928     2921       -7

@cbrnr

cbrnr commented Feb 20, 2019

Copy link
Copy Markdown
Contributor Author

This is getting inconsistent. We have separate methods for infomax and extended-infomax, but only one picard method. I think it would be more consistent to drop the extended-infomax method and allow extended=True for infomax (which is what happens internally anyway). Since Picard can also have ortho=True, there would be four distinct Picard methods if we wanted to add separate methods instead (I wouldn't).

@pierreablin

Copy link
Copy Markdown
Contributor

-I thought it was a good idea to fix the default parameters of picard in MNE in case they change in the original picard package, but maybe its a bad idea. If they change in the original package, its likely to be for a good reason.

-I agree with you about the difference between infomax and extended-infomax. To me ICA(method='infomax', fit_params={'extended': True}) makes more sense. For instance, you can argue that the same disambiguation exists for fastica since it can be run in deflation or parralel, but this choice is handled through fit_params right now.

So +1 for allowing extended as a param in fit_params.

@larsoner

Copy link
Copy Markdown
Member

I'm fine with deprecating extended-infomax

@cbrnr cbrnr changed the title Remove check for extended argument in ICA fit_params Deprecate extended-infomax method Feb 21, 2019
@agramfort

Copy link
Copy Markdown
Member

can you add a what's new update?

@cbrnr

cbrnr commented Feb 21, 2019

Copy link
Copy Markdown
Contributor Author

Ready

@agramfort

agramfort commented Feb 21, 2019 via email

Copy link
Copy Markdown
Member

@cbrnr

cbrnr commented Feb 21, 2019

Copy link
Copy Markdown
Contributor Author

All green, ready to merge.

@cbrnr

cbrnr commented Feb 21, 2019

Copy link
Copy Markdown
Contributor Author

@pierreablin and/or @larsoner do you have time to look?

@pierreablin

Copy link
Copy Markdown
Contributor

LGTM 👍

@larsoner larsoner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM +1 for merge

Comment thread mne/preprocessing/ica.py Resolved
@cbrnr cbrnr changed the title Deprecate extended-infomax method [MRG] Deprecate extended-infomax method Feb 21, 2019
@larsoner

Copy link
Copy Markdown
Member

Looked at commit and checked for flake violation locally, going to merge. Thanks @cbrnr

@larsoner
larsoner merged commit b0e691f into mne-tools:master Feb 21, 2019
@cbrnr
cbrnr deleted the picard_extended branch February 21, 2019 16:58
jeythekey pushed a commit to jeythekey/mne-python that referenced this pull request Apr 27, 2019
* Remove check for extended argument in ICA fit_params

* Remove test

* Deprecate method='extended-infomax' and don't change Picard defaults

* Add whats_new entry

* Replace 'extended-infomax' everywhere with the new argument combination

* Fix example

* Forgot default argument

* Clarify deprecation warning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants