Skip to content

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

Open
mitchellostrow wants to merge 1 commit intoMachine-Learning-Dynamical-Systems:mainfrom
mitchellostrow:feature/multi_trajectory_context_dataset
Open

add function for generating TrajectoryContextDataset from a list of trajectories#12
mitchellostrow wants to merge 1 commit intoMachine-Learning-Dynamical-Systems:mainfrom
mitchellostrow:feature/multi_trajectory_context_dataset

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