Improving the transforms
See original GitHub issueThe most recent implementation of transforms asks for an OrderedDict of callables or mne.Raw/Epochs methods that are called successively on the internal Raw/Epochs objects in a ConcatDataset (https://github.com/braindecode/braindecode/blob/master/braindecode/datautil/transforms.py#L18). I wanted to discuss possible improvements to this design:
- The current design requires the callables or methods to act in-place, i.e., they must directly modify the Raw/Epochs object. However, apart from
.resample
and.filter,
most mne methods do not seem to act in-place. As for callables, they can be made to modify the objects in-place, but this would mean all the transforms would have to be mne object-aware. I don’t have a specific solution in mind, but maybe we could discuss this here. - There is currently no way to apply a transform on-the-fly, i.e., every time a window is about to be returned. This is central to preprocessing steps in a lazy loading scenario however. The design we had started to implement during the sprint used Transform objects that were saved in the dataset object, and called inside
__getitem__
. This is how torch-vision does it for instance.
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Improve, Transform, Or Sustain: What's Your Path To A Better ...
C-level executives will officially name customer experience as a top strategic priority, jumpstarting their companies' transformation efforts.
Read more >Do and don't when using transformation to improve CNN deep ...
Do and don't when using transformation to improve CNN deep learning model. An experiment in PyTorch and Torchvision to diagnose your neuron ...
Read more >Why even successful transformations fall short - McKinsey
Transformational change is still hard, according to a new survey. But a focus on communicating, leading by example, engaging employees, and ...
Read more >How Improving the Everyday Stuff Can Help Transform an ...
Carefully determining if any new or enhanced competencies are required to implement improved services will help to transform your workforce.
Read more >5 Keys to Transformation | NEA Center for Great Public Schools
Each school/district faculty member is a learner and models a career-long commitment to reflection on practice, personal growth, and continuous improvement.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I will have a try with that right now actually since it is giving unexpected results with dict. we can still see which interface we prefer after.
oki, now implemented in #94