-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MRG] Save preprocessing and windowing arguments #287
Conversation
As of PEP 3102 I would like to force all keyword arguments for |
…ctions, since it is hard to track their arguments
-refactoring
2514214
to
4eeea94
Compare
Codecov Report
@@ Coverage Diff @@
## master #287 +/- ##
==========================================
+ Coverage 79.56% 80.10% +0.54%
==========================================
Files 49 49
Lines 2878 2931 +53
==========================================
+ Hits 2290 2348 +58
+ Misses 588 583 -5 |
-replaced lambda functions in examples by braindecode.preprocessing.scale -removed MNEPreproc from examples -updated grabbing of preprocessing kwargs
@hubertjb I just had to learn that we cannot use |
Interesting, I was not aware of pep570! And sorry about that, I should have been more careful. Let's maybe reinstate it but rename it |
…examples, since lambda functions are no longer supported and np.multiply cannot be used -added tetsts
-not using deprecated 'save_concat_dataset' anymore
Are there any other ideas for the structure of the saved preprocessing choices?
Windowing kwargs are a special case with this structure. The list is not acually needed, since there will always be just one windowing function. I kept the list for consistency. Any suggestions for improvement? @robintibor @hubertjb @sliwy @agramfort ? |
Ah, no worries. I also was not aware. Yes we should avoid confusion with sklearn, although I am very unhappy about their choices here. Both with forcing positional arguments as well as with naming |
Maybe |
Ready to merge from my side unless there are objections. |
Please add description to whats_new |
thanks |
-initiated work on saving preprocessing and windowing arguments to BasseConcatDataset