Skip to main content

A python package for evolution operator learning

Project description

kooplearn logo

Docs CI codecov PyPI version Python versions License

kooplearn is a Python library to learn evolution operators — also known as Koopman or Transfer operators — from data. kooplearn models can:

  1. Predict the evolution of states and observables.
  2. Estimate the eigenvalues and eigenfunctions of the learned evolution operators.
  3. Compute the dynamic mode decomposition of states and observables.
  4. Learn neural-network representations $x_t \mapsto \varphi(x_t)$ for evolution operators.

Why Choosing kooplearn?

  1. It is easy to use and strictly adheres to the scikit-learn API.

  2. Kernel estimators are state-of-the-art:

  3. Includes representation-learning losses (implemented both in Pytorch and JAX) to train neural-network Koopman embeddings.

  4. Offers a collection of datasets for benchmarking evolution-operator learning algorithms.

Installation

To install the core version of kooplearn:

pip

pip install kooplearn

uv

uv add kooplearn

To enable neural-network representations using kooplearn.torch or kooplearn.jax:

pip

# Torch
pip install "kooplearn[torch]"
# JAX
pip install "kooplearn[jax]"

uv

# Torch
uv add "kooplearn[torch]"
# JAX
uv add "kooplearn[jax]"

From source

For development, clone the repository and install the package with all optional extras and dependency groups:

git clone https://github.com/Machine-Learning-Dynamical-Systems/kooplearn.git
cd kooplearn
uv sync --all-extras --all-groups

With pip>=25.1, the equivalent editable install is:

python -m pip install -U pip
python -m pip install -e ".[torch,jax]" --group dev --group docs --group examples

Testing

Run the default test suite from the repository root with:

uv run pytest

After installing with pip, use:

python -m pytest

Contributing

We welcome contributions from the community. See CONTRIBUTING.md for development setup, testing, issue reports, and pull request guidance.

License

This project is licensed under the MIT License.

Main contributors

kooplearn is an joint effort between teams at the Italian Institute of Technology in Genoa and the École polytechnique in Paris. The main contributors to the project are (in alphabetical order):

  • Vladimir Kostic
  • Karim Lounici
  • Giacomo Meanti
  • Erfan Mirzaei
  • Pietro Novelli
  • Daniel Ordoñez-Apraez
  • Grégoire Pacreau
  • Massimiliano Pontil
  • Giacomo Turri

The mantainer of this repo is Pietro Novelli.

Citing kooplearn

@article{kooplearn,
title={kooplearn: A scikit-learn compatible library of algorithms for evolution operator learning},
author={Giacomo Turri and Grégoire Pacreau and Giacomo Meanti and Timothée Devergne and Daniel Ordoñez-Apraez and Erfan Mirzaei and Bruno Belucci and Karim Lounici and Vladimir R. Kostic and Massimiliano Pontil and Pietro Novelli},
year={2026},
eprint={2512.21409},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2512.21409}, 
}

We hope you find kooplearn useful for your dynamical systems analysis. If you encounter any issues or have suggestions for improvements, please don't hesitate to raise an issue. Happy coding!

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

kooplearn-2.0.3.tar.gz (44.1 MB view details)

Uploaded Source

Built Distribution

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

kooplearn-2.0.3-py3-none-any.whl (90.3 kB view details)

Uploaded Python 3

File details

Details for the file kooplearn-2.0.3.tar.gz.

File metadata

  • Download URL: kooplearn-2.0.3.tar.gz
  • Upload date:
  • Size: 44.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for kooplearn-2.0.3.tar.gz
Algorithm Hash digest
SHA256 e691dfe16fb15349eca526b3c1fc60754b8341840a08107d2b4a1d2577364e18
MD5 05b8ba3c4666e176be1a73328d9343b1
BLAKE2b-256 5d7210bdfdc740da080b77704a677a3033f49464a0d51521d6bd68ed91b4649d

See more details on using hashes here.

File details

Details for the file kooplearn-2.0.3-py3-none-any.whl.

File metadata

  • Download URL: kooplearn-2.0.3-py3-none-any.whl
  • Upload date:
  • Size: 90.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for kooplearn-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8187bbc9dcc773699c9fb8b35c4f6277ba05463c10f6c5d5ae60dd1433ab6512
MD5 ba14d25509da8525a25d593af707304c
BLAKE2b-256 a0b37c51321575d50cca04c51745e2b4b582e80fdf87e1de392d685c4f0aba87

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