patrick-kidger / patrick-kidger/diffrax

Is it possible to obtain the steps of the trajectories?

Open
#249 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Python
Stars
2.1k
Forks
189
Avg merge
3d 18h
Merged PRs (30d)
1

Description

Hello,

I was wondering if is it possible to use some kind of callback function on the diffeqsolve function such that I can get not only the last step of the trajectory within the specified time, but also all the intermediate steps. If so, can you give me a quick example on how to implement it myself?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the diffeqsolve API and its trajectory-output behavior. Determine whether intermediate steps are already exposed and identify the relevant documentation or tests; done should be a documented, reproducible way to obtain all intermediate trajectory steps, if supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.