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

add function for generating TrajectoryContextDataset from a list of trajectories #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mitchellostrow
Copy link

I am working with multiple trajectories and want to create a TrajectoryContextDataset from a list of them, so I created a function to simply loop through all the trajectories and add them into a TCD class. I updated the idx_map variable to now have 2 components [traj_index,time_index]. Then concatenate all data together in the first dimension so that it is of shape (total sum of windows, window_length, dim).

@pietronvll
Copy link
Contributor

pietronvll commented Jun 22, 2024

Hi @mitchellostrow, thanks for this pull request. We have some similar functionality in the development branch, see

class MultiTrajectoryContextDataset(TensorContextDataset):

The pre-release version implementing the multi-trajectory context windows are installable from pip by typing

pip install kooplearn==1.2.0b1

Let us know your feedbacks!

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.

2 participants