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

Non uniform time step in example/ode_demo.py #242

Open
zhengqigao opened this issue Oct 30, 2023 · 0 comments
Open

Non uniform time step in example/ode_demo.py #242

zhengqigao opened this issue Oct 30, 2023 · 0 comments

Comments

@zhengqigao
Copy link

Hi,

Thanks for the great work and repo. I am reading the ode_demo.py under the example folder. At present, the time steps are defined by t = torch.linspace(0., 25., args.data_size).to(device) which is uniform. Thus in line 166, we could pass batch_t which is a tensor of shape (10,) to the odeint function. One advantage of using Neural ODE to time series data should be its capability to handle non-uniform time steps. I wonder if the data is provided associated with non-uniform time steps (i.e., t is non-uniform), how should we modify the script to make it applicable? Specifically, I would like to know how to revise line 166. Should we provide a tensor batch_t of shape (10,20) now?

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