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.2.tar.gz (29.9 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.2-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

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

Hashes for sindy_exp-0.2.2.tar.gz
Algorithm Hash digest
SHA256 0fe448532ede07fe79c58730c3cec3f5af9e3ac7c2eab9e2fb949195417a6f27
MD5 da8c05b2ab4c6235e77db7f789cb814d
BLAKE2b-256 c0380a4e83ff8a064777d45ff6f2f17c4db98bae0b1b11bdada0d73ea4e470dc

See more details on using hashes here.

Provenance

The following attestation bundles were made for sindy_exp-0.2.2.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.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

Hashes for sindy_exp-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d22964a99c015bdfea7cc458ba8da973edd982ee01120b2e0f6f10dfadfe5dd8
MD5 73c36e6966ec00708f74c70862f15d7e
BLAKE2b-256 fe031c70b662c2b04dded011cfd5ece84e354c367d7409f7722df148243312d7

See more details on using hashes here.

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

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