Skip to content

Allow passing models directly as parameters to odes.run()#46

Merged
Jacob-Stevens-Haas merged 3 commits into
mainfrom
model-arg
May 1, 2025
Merged

Allow passing models directly as parameters to odes.run()#46
Jacob-Stevens-Haas merged 3 commits into
mainfrom
model-arg

Conversation

@Jacob-Stevens-Haas
Copy link
Copy Markdown
Owner

Because mitosis could only handle a few containers as parameters (e.g. nested dictionaries), all of these experiments were written with nested dictionaries as the parameter type. Now that mitosis allows parameters to be custom container classes, we should modify odes.run() (and eventually, gridsearch) to allow them: It makes updating parameter names much easier due to IDE's static code analysis.

This change also begins to generalize to _BaseSINDy in order to
support the Simultaneous/Single-Step/Joint SINDy of our dreams.
However, that exposes up a lot of type holes in our heirarchy
(perhaps a good thing long term).
It had previously been accepted that, when training SINDy models on
multiple trajectories, you could just use a single trajectory for t.
This works, but allows too many ways of doing the same thing (bad
PEP 20).
@Jacob-Stevens-Haas Jacob-Stevens-Haas merged commit cf94ffe into main May 1, 2025
5 checks passed
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.

1 participant