kooplearn
is a Python library designed for learning Koopman or Transfer operators associated with dynamical systems. Given a nonlinear dynamical system $x{t + 1} = S(x{t})$, the Koopman operator provides a global linearization of the dynamics by mapping it to a suitable space of observables $\mathcal{F}$. An observable is any (scalar) function of the state. The Koopman operator $\mathsf{K}$ is defined as $$(\mathsf{K}f)(x{t}) = f(x{t + 1}) := f \circ S (xt) \qquad f \in \mathcal{F}.$$
Similarly, given a stochastic process $X:= { X{s} \colon s \in \mathbb{N}}$, its *Transfer operator returns the expected value of any observable forward in time. The Transfer operator $\mathsf{T}$ is defined as $$(\mathsf{T}f)(x) := \mathbb{E}\left[f(X{t + 1}) \mid X{t} = x \right] \qquad f \in \mathcal{F}.$$
kooplearn
provides a suite of algorithms for model training and analysis, enabling users to perform forecasting, spectral decomposition, and modal decomposition based on the learned operator.
Please note that kooplearn
is currently under active development, and while we are continuously adding new features and improvements, some parts of the library might still be a work in progress.
To install the core version of kooplearn
, without optional dependencies, run
pip install kooplearn
To install the full version of kooplearn
, including Neural-Network models, and the dahsboard, run
pip install "kooplearn[full]"
To install the development version of kooplearn
, run
pip install --upgrade git+https://github.com/Machine-Learning-Dynamical-Systems/kooplearn.git
We welcome contributions from the community! If you're interested in contributing to kooplearn
, please follow these steps:
git checkout -b feature/your-feature-name
or git checkout -b bugfix/issue-number
.main
branch of the original repository.We appreciate your contributions and will review your pull request as soon as possible. Thank you for helping improve kooplearn
!
This project is licensed under the MIT License.
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):
The mantainer of this repo is Pietro Novelli.
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!