Skip to main content

System identification Methods leveraging Backpropagation

Project description

SIMBa

System Identification Methods with Backpropagation

SIMBa (System Identification Methods leveraging Backpropagation) is an open-source toolbox leveraging Pytorch's Automatic Differentiation framework for stable state-space linear SysID. It allows the user to incorporate prior knowledge (like sparsity patterns of the state-space matrices) during the identification procedure.

Intallation

SIMBa is available on pypi, it can be installed with pip install simbapy.
Note that this will NOT install SIPPY or matlabengine to avoid compatibility issues (typically dependent on your MATLAB version). You can install them separately to allow Simba's initialization properties.

Alternatively, you can clone this github repository to use simba locally.

Compatibility with matlab

If matlab is installed on your machine, you can install matlabengine. If you are on the latest version of MATLAB, pip install matlabengine works, otherwise you might need to install an older version of matlabengine. See here the supported version of MATLAB.
SIMBa needs access the System Identification Toolbox and Symbolic Math Toolbox in MATLAB.
You can disable the use of matlab by overwriting IS_MATLAB in simba.parameters

Project status

SIMBa was first presented in Stable Linear Subspace Identification: A Machine Learning Approach and subsequently extended in SIMBa: System Identification Methods leveraging Backpropagation.

Known issue

For SIPPY users

There seems to be a bug in the control library when the dimension of the control input is one, which raises an unwanted exception.
This does not affect SIMBa in general but can fail is SIPPY is required (e.g., for SIMBa's initialization).

To correct it, you'll need to go to timeresp.py in the library, typically located in your virtual environment at .venv/lib/python3.x/site-packages/control/ and add the following transpose at line 1002, before _check_convert_array:

if len(U.shape) > 1:
    U = U.T

Contact

This project is jointly led by Loris Di Natale and Muhammad Zakwan, with the participation of Bratislav Svetozarevic, Philipp Heer, Giancarlo Ferrari Trecate, and Colin N. Jones.
Urban Energy Systems Lab, Empa, Switzerland
Laboratoire d'Automatique, EPFL, Switzerland

For more information, please contact loris.dinatale@alumni.epfl.ch

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

simbapy-0.4.1.tar.gz (34.3 kB view details)

Uploaded Source

Built Distribution

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

simbapy-0.4.1-py3-none-any.whl (36.3 kB view details)

Uploaded Python 3

File details

Details for the file simbapy-0.4.1.tar.gz.

File metadata

  • Download URL: simbapy-0.4.1.tar.gz
  • Upload date:
  • Size: 34.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for simbapy-0.4.1.tar.gz
Algorithm Hash digest
SHA256 2626251e693cbe7f7efcdff2e5f25c4f871ed41928614f1bc89aa410061a4101
MD5 b49d314f5e7819cfe356ad1438bef826
BLAKE2b-256 25945a0b0524c9bd5198f4f641bac2b7b8b2ac8d5c3cd7c665ec8462676174cf

See more details on using hashes here.

File details

Details for the file simbapy-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: simbapy-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 36.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for simbapy-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fca59586d619a43ab7ee55ad804c65bbbb4e27b604981e26e9c7dd249e61d9bc
MD5 a588aa5c3e597b370858b4a916bc3e47
BLAKE2b-256 d95b4ff96181e5dc8933641a9514d2462f1279c2f0377e924e958c5cf8d6643e

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