A python package for evolution operator learning
Project description
kooplearn is a Python library to learn evolution operators — also known as Koopman or Transfer operators — from data. kooplearn models can:
- Predict the evolution of states and observables.
- Estimate the eigenvalues and eigenfunctions of the learned evolution operators.
- Compute the dynamic mode decomposition of states and observables.
- Learn neural-network representations $x_t \mapsto \varphi(x_t)$ for evolution operators.
Why Choosing kooplearn?
-
It is easy to use and strictly adheres to the scikit-learn API.
-
Kernel estimators are state-of-the-art:
kooplearnimplements the Reduced Rank Regressor from Kostic et al. 2022, which is provably better than the classical kernel DMD in estimating eigenvalues and eigenfunctions.- It also implements Nyström estimators and randomized estimators randomized for blazingly fast kernel learning.
-
Includes representation-learning losses (implemented both in Pytorch and JAX) to train neural-network Koopman embeddings.
-
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e691dfe16fb15349eca526b3c1fc60754b8341840a08107d2b4a1d2577364e18
|
|
| MD5 |
05b8ba3c4666e176be1a73328d9343b1
|
|
| BLAKE2b-256 |
5d7210bdfdc740da080b77704a677a3033f49464a0d51521d6bd68ed91b4649d
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8187bbc9dcc773699c9fb8b35c4f6277ba05463c10f6c5d5ae60dd1433ab6512
|
|
| MD5 |
ba14d25509da8525a25d593af707304c
|
|
| BLAKE2b-256 |
a0b37c51321575d50cca04c51745e2b4b582e80fdf87e1de392d685c4f0aba87
|