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

Polars backend for Augment fourier #205

Merged
merged 6 commits into from
Oct 31, 2023

Conversation

GTimothee
Copy link
Contributor

@GTimothee GTimothee commented Oct 29, 2023

Solves one task from #77

Finally I found a workaround not to update ts_summary with polars for now, as it was not that trivial to do. I will try to do it next. But I wanted to separate both tasks.

Normally it should work as expected. I also added some tests.

@GTimothee
Copy link
Contributor Author

I think I found a way to speedup the calc_fourier. I removed the three for loops and I compute 2 * np.pi * term * x only once with a numpy matrix multiplication. With 2 orders and 2 periods, it reduces the computation time from 2.3 ms to 1.38 ms according to my experiments. I will package it and push it later today :)

@mdancho84
Copy link
Contributor

Excellent!

@mdancho84 mdancho84 merged commit 8b125a1 into business-science:master Oct 31, 2023
7 checks passed
@mdancho84
Copy link
Contributor

Hey, I wanted to get the preliminary merge complete. I noticed there were a few merge conflicts since @JustinKurland did some work on reducing memory usage.

@GTimothee
Copy link
Contributor Author

Great, sorry I did not have much time I will do my best to deliver faster

@mdancho84
Copy link
Contributor

The release date is for Friday. So if you can get something by tomorrow we should be ok.

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.

None yet

2 participants