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.1.tar.gz (30.2 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.1-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sindy_exp-0.2.1.tar.gz
  • Upload date:
  • Size: 30.2 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.1.tar.gz
Algorithm Hash digest
SHA256 41a6079a49cba15e0068e1c7156f73ea359cfb734644706847507c46505423b3
MD5 6e196dbe3bd86ec959a03a248be1d396
BLAKE2b-256 dd81abceab1cf63046eff9af35c87cc95616ccda82de4560c6332e8474e0c8de

See more details on using hashes here.

Provenance

The following attestation bundles were made for sindy_exp-0.2.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: sindy_exp-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 510dd86770957f76dd36d12e1f9f2d2d5f8e30300dea254fc92a7265f5de0a42
MD5 f737bbcc220973b6330c963848e9c1f4
BLAKE2b-256 4915573b51e598900f37f27e875f74511dd4b4d5efab67e4252866384515c794

See more details on using hashes here.

Provenance

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