Skip to main content

Taylor map flow is a package for a 'flowly' construction and learning of polynomial neural networks (PNN) for time-evolving process prediction

Project description

Taylor map flow is a package for a 'flowly' construction and learning of polynomial neural networks (PNN) for time-evolving process prediction.

Based on the input time-series data, it provides:

  • (construct) a module to construct ordinary differential equations (ODEs) in the polynomial form
  • (map) a module to construct a matrix Taylor map for ODEs
  • (learn) a TensorFlow-based module to build and train a polynomial neural network (PNN). Taylor map matrices can be used as PNN initial weights.

PNN built in this flow way is strongly connected with ordinary differential equations. This combination reveals the data-underlying deterministic process without manual equation derivation and allows treating cases even when only small datasets or partial measurements are available. The proposed hybrid models provide explainable and interpretable results to leverage optimal control applications.

'Construct', 'map', and 'learn' modules can be used sequentially or independently from each other.

Map

Module for Taylor Mapping construction. It gives a tool to construct Taylor mapping for the given system of Ordinary Differential Equations with polynomial right-hand side.

Features

  • Matrices of Taylor mapping completely describe the given ODEs' dynamics up to the required degree of accuracy for any initial conditions.

  • It is possible to compute Taylor mapping matrices in a symbolic form.

  • If the right-hand side of the ODE system depends on parameters, it is possible to construct parameter-dependent TM matrices.

Interface

The list of inputs for the module:

  • NumPy array of matrices P in the ODEs right-hand side
  • order of nonlinearity for Taylor mapping (order)
  • Taylor mapping step (h)

The module output:

  • NumPy array of Taylor mapping matrices R

Installation

Base library install

pip install tmflow

Installation with additional dependencies for GitHub examples

pip install tmflow[examples]

Library development installation for GitHub sources

The library can be installed in development mode, which enables library loading from the disk with all saved code changes. You may also need to uninstall the public version of the library.

Commands should be executed from the library project root folder.

pip uninstall tmflow
pip install -r requirements.txt
pip install -e .

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

tmflow-0.5.0.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.

tmflow-0.5.0-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

Details for the file tmflow-0.5.0.tar.gz.

File metadata

  • Download URL: tmflow-0.5.0.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for tmflow-0.5.0.tar.gz
Algorithm Hash digest
SHA256 96589669eba612eb84246ba2bf6d1759322a97e3dde3b2902964e89dc34bae1d
MD5 93d57dafb22f72af6ee50c3d8cff3172
BLAKE2b-256 5d5c44dae37b723cd6ccccad2e9ffcab5f722828a291ff136cea3074c97d3d68

See more details on using hashes here.

File details

Details for the file tmflow-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: tmflow-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 23.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for tmflow-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fededbaab64f8c4a21828726f2c179aae8b2518a3514b3a3afb153d8f5b7ac44
MD5 dfc512af217212ac3033126ebeb5587f
BLAKE2b-256 867953c899b00b45d96fc7e5eab94debbf8e93312aa03cd94d8f7fb00b3f3bfb

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