Skip to main content

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)

Coefficient plots

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.

3d plot 1d plot

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

sindy_exp-0.2.0.tar.gz (30.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sindy_exp-0.2.0-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

Details for the file sindy_exp-0.2.0.tar.gz.

File metadata

  • Download URL: sindy_exp-0.2.0.tar.gz
  • Upload date:
  • Size: 30.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sindy_exp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 788476c7ff505dd82ee554a705c96bd045ad6b10ba7a136a55914d37a3f4a612
MD5 5727c7bfa46a23898082795ed10006b2
BLAKE2b-256 bd7bc4260803c284acfaae1988686102d33741ff0896d797408726d8baa4df8d

See more details on using hashes here.

Provenance

The following attestation bundles were made for sindy_exp-0.2.0.tar.gz:

Publisher: release.yml on Jacob-Stevens-Haas/pysindy-experiments

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sindy_exp-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: sindy_exp-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 26.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sindy_exp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d90535f8cccc6bae42ca3a4a765e3746c4671e5c97a0eb2144d8d45b66e296c2
MD5 cade04484983b0b0f73c0b4ba0635bc2
BLAKE2b-256 a7eaf50df45a7e9f1d4f68568261a54fc1e70ce8632d6832f0266d7528eb4b29

See more details on using hashes here.

Provenance

The following attestation bundles were made for sindy_exp-0.2.0-py3-none-any.whl:

Publisher: release.yml on Jacob-Stevens-Haas/pysindy-experiments

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page