A basic library for constructing dynamics experiments
Project description
Dynamics Experiments
A library for constructing dynamics experiments. This includes data generation and plotting/evaluation.
Getting started
It's not yet on PyPI, so install it with pip install sindy_exp @ git+https://github.com/Jacob-Stevens-Haas/sindy-experiments
Generate data
data = sindy_exp.data.gen_data("lorenz", num_trajectories=5, t_end=10.0, dt=0.01)["data]
Evaluate your SINDy-like model with:
sindy_exp.odes.fit_eval(model, data)
A list of available ODE systems can be found in ODE_CLASSES, which includes most
of the systems from the dysts package as well as some non-chaotic systems.
ODE representation
We deal primarily with autonomous ODE systems of the form:
dx/dt = sum_i f_i(x)
Thus, we represent ODE systems as a list of right-hand side expressions. Each element is a dictionary mapping a term (Sympy expression) to its coefficient.
Other useful imports, compatibility, and extensions
This is built to be compatible with dynamics learning models that follow the
pysindy _BaseSINDy interface.
The experiments are also built to be compatible with the mitosis tool,
an experiment runner.
To integrate your own experiments or data generation in a way that is compatible,
see the ProbData and DynamicsTrialData classes.
For plotting tools, see plot_coefficients, compare_coefficient_plots_from_dicts,
plot_test_trajectory, plot_training_data, and COLOR.
For metrics, see coeff_metrics, pred_metrics, and integration_metrics.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sindy_exp-0.2.2.tar.gz.
File metadata
- Download URL: sindy_exp-0.2.2.tar.gz
- Upload date:
- Size: 29.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fe448532ede07fe79c58730c3cec3f5af9e3ac7c2eab9e2fb949195417a6f27
|
|
| MD5 |
da8c05b2ab4c6235e77db7f789cb814d
|
|
| BLAKE2b-256 |
c0380a4e83ff8a064777d45ff6f2f17c4db98bae0b1b11bdada0d73ea4e470dc
|
Provenance
The following attestation bundles were made for sindy_exp-0.2.2.tar.gz:
Publisher:
release.yml on Jacob-Stevens-Haas/pysindy-experiments
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sindy_exp-0.2.2.tar.gz -
Subject digest:
0fe448532ede07fe79c58730c3cec3f5af9e3ac7c2eab9e2fb949195417a6f27 - Sigstore transparency entry: 876951388
- Sigstore integration time:
-
Permalink:
Jacob-Stevens-Haas/pysindy-experiments@0ba14a192de115d4c99939c320d75acf434204c2 -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/Jacob-Stevens-Haas
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0ba14a192de115d4c99939c320d75acf434204c2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sindy_exp-0.2.2-py3-none-any.whl.
File metadata
- Download URL: sindy_exp-0.2.2-py3-none-any.whl
- Upload date:
- Size: 26.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d22964a99c015bdfea7cc458ba8da973edd982ee01120b2e0f6f10dfadfe5dd8
|
|
| MD5 |
73c36e6966ec00708f74c70862f15d7e
|
|
| BLAKE2b-256 |
fe031c70b662c2b04dded011cfd5ece84e354c367d7409f7722df148243312d7
|
Provenance
The following attestation bundles were made for sindy_exp-0.2.2-py3-none-any.whl:
Publisher:
release.yml on Jacob-Stevens-Haas/pysindy-experiments
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sindy_exp-0.2.2-py3-none-any.whl -
Subject digest:
d22964a99c015bdfea7cc458ba8da973edd982ee01120b2e0f6f10dfadfe5dd8 - Sigstore transparency entry: 876951438
- Sigstore integration time:
-
Permalink:
Jacob-Stevens-Haas/pysindy-experiments@0ba14a192de115d4c99939c320d75acf434204c2 -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/Jacob-Stevens-Haas
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0ba14a192de115d4c99939c320d75acf434204c2 -
Trigger Event:
push
-
Statement type: