Skip to content
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

Batch load for pywt.cwt #445

Closed
SongRb opened this issue Jan 3, 2019 · 1 comment · Fixed by #509
Closed

Batch load for pywt.cwt #445

SongRb opened this issue Jan 3, 2019 · 1 comment · Fixed by #509
Milestone

Comments

@SongRb
Copy link

SongRb commented Jan 3, 2019

I'm working on a machine learning application and have to do transformation on large scale of data. I want to call the function like pywt.cwt((batch_size, signal_length)), but it seems only dim=1 supported. Is there any plan for supporting this feature?

@grlee77
Copy link
Contributor

grlee77 commented Aug 1, 2019

Hi @SongRb:

An implementation of this has been proposed in #509.

Any feedback there would be welcome. In the case of data with shape (batch_size, signal_length), you could leave the default axis=-1 argument since the signal is along the last axis of the input. The output would have shape (len(scales), batch_size, signal_length).

Also, another recent PR allows setting mode='fft' to do FFT-based convolutions for the CWT. This should have a performance benefit for larger data / scales.

@rgommers rgommers added this to the v1.1 milestone Aug 5, 2019
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 a pull request may close this issue.

3 participants