Skip to main content

HyperSINDy, a package to discover RDEs from time series data.

Project description

HyperSINDy

This repository is the official implementation of HyperSINDy, first introduced in HyperSINDy: Deep Generative Modeling of Nonlinear Stochastic Governing Equations.

Requirements

All the requirements are contained in the environment.yml file\ To install the requirements, run:

conda env create -f environment.yml

Then, activate the conda environment:

conda activate hypersindy

Or, with some conda environment that can run Python 3.9, you can manually install the dependencies:

conda install scipy seaborn tensorboard matplotlib scikit-learn pandas jupyterlab pip
pip3 install pysindy torch==1.12.0 torchvision

Installation

After installing dependencies, you can install hypersindy:

pip3 install hypersindy

Example use case

See example.py as well. `` python3

from hypersindy.library import Library from hypersindy.net import Net from hypersindy.trainer import Trainer from hypersindy.dataset import SyntheticDataset from hypersindy.utils import set_random_seed

set_random_seed(0) device = 2 x_dim = 3 z_dim = 6 data_path = 'x_train.npy'

library = Library(x_dim) net = Net(library, z_dim).to(device) dataset = SyntheticDataset(library, fpath=data_path) trainer = Trainer(net, library, "runs/1", "runs/1.pt", device=device) trainer.train(dataset)

equations results ``

Results can be viewed in tensorboard. tensorboard --logdir="runs"

Paper

To reproduce results from the paper, go to the paper folder and view the README there. cd paper

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

hypersindy-0.0.4.tar.gz (20.5 kB view details)

Uploaded Source

Built Distribution

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

hypersindy-0.0.4-py3-none-any.whl (23.7 kB view details)

Uploaded Python 3

File details

Details for the file hypersindy-0.0.4.tar.gz.

File metadata

  • Download URL: hypersindy-0.0.4.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.12

File hashes

Hashes for hypersindy-0.0.4.tar.gz
Algorithm Hash digest
SHA256 4656fb74ca34ddf56157696c62155a482ead6d4c7e1f15fce8607d2b034d3a78
MD5 48334a0da9c370647c104d0de6a61391
BLAKE2b-256 64f8c1f4124135b3a9ac6cf0a11d778d95837e77b5275f99ae779bd1e57d402d

See more details on using hashes here.

File details

Details for the file hypersindy-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: hypersindy-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 23.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.12

File hashes

Hashes for hypersindy-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 07fcf57b3394c71fa02e5bdc2efbf4aba3c65c8322dd3130009daa3bb7e8411e
MD5 372ccc040b6959a2954a1a7cf8008cf5
BLAKE2b-256 fce4fadc368b4c57a38e90469b5806fd2a7bf0682ccd2663063d92dd32207ffa

See more details on using hashes here.

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