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

Dev : new functions for batching + dask compatibility #379

Open
gviejo opened this issue Dec 17, 2024 · 0 comments
Open

Dev : new functions for batching + dask compatibility #379

gviejo opened this issue Dec 17, 2024 · 0 comments

Comments

@gviejo
Copy link
Contributor

gviejo commented Dec 17, 2024

  1. tsd.get_chunks(window_size, overlap) -> slice object. Helper function to create chunking of time series. Useful for writing batch loop to load memory map chunk and apply some functions.
  2. tsd.apply(func, windowsize, overlap) -> new tsd. Batching function that apply func over time series. Calls the method get_chunks.
  3. tsd.compute() To be used when passing a dask array. Solely for dask compatibility.
  4. tsgroup.groupby("metadata_col") -> dict of tsgroup
  5. tsgroup.groupby_apply(metadata_col, nap_function, arg, kwargs) -> results. Group and apply a pynapple high level function.
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

No branches or pull requests

1 participant