Scan your whole stack
Are you using pykoopman?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.2.4
pykoopman was last scanned on 25 Nov 2026 at version 1.2.4. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.2.4 LATEST | 25 Nov 2026 | No rules fired |
| 1.2.2 | 9 Nov 2026 | No rules fired |
Findings for v1.2.4. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 1.2.4; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
PyKoopman is a Python package for computing data-driven approximations to the Koopman operator.
Given a nonlinear dynamical system,
$$x'(t) = f(x(t)),$$
the Koopman operator governs the temporal evolution of the measurement function. Unfortunately, it is an infinite-dimensional linear operator. Most of the time, one has to project the Koopman operator onto a finite-dimensional subspace that is spanned by user-defined/data-adaptive functions.
$$z = \Phi(x).$$
If the system state is also contained in such subspace, then effectively, the nonlinear dynamical system is (approximately) linearized in a global sense.
The goal of data-driven approximation of Koopman operator is to find such a set of functions that span such lifted space and the transition matrix associated with the lifted system.
PyKoopman package is centered around the Koopman class and KoopmanContinuous class. It consists of two key components
observables: a set of observables functions, which spans the subspace for projection.
regressor: the optimization algorithm to find the best fit for the
projection of Koopman operator.
After Koopman/KoopmanContinuous object has been created, it must be fit to data, similar to a scikit-learn model.
We design PyKoopman such that it is compatible to scikit-learn objects and methods as much as possible.
Observable library for lifting the state into the observable space
IdentityPolynomialTimeDelayRadialBasisFunctionsRandomFourierFeaturesCustomObservablesConcatObservablesSystem identification method for performing regression
PyDMDRegressorDMDcEDMDEDMDcKDMDHAVOKNNDMDSparse construction of Koopman invariant subspace
Dynamic mode decomposition with control on a 2D linear system
Dynamic mode decomposition with control (DMDc) for a 128D system
Dynamic mode decomposition with control on a high-dimensional linear system
Successful examples of using Dynamic mode decomposition on PDE system
Unsuccessful examples of using Dynamic mode decomposition on PDE system
Hankel Alternative View of Koopman Operator for Lorenz System
Sparisfying a minimal Koopman invariant subspace from EDMD for a simple linear system
If you are using Linux or macOS you can install PyKoopman with pip:
pip install pykoopman
The tutorial notebooks also need Jupyter, which is not installed with PyKoopman:
pip install jupyter
We recommend using uv for environment management.
First clone this repository:
git clone https://github.com/dynamicslab/pykoopman
cd pykoopman
Create a virtual environment with Python 3.11 and install the package:
uv venv --python 3.11
uv pip install -e .
Alternatively, you can use the traditional venv approach:
python -m venv .venv
source ./.venv/bin/activate # On Windows: .\.venv\Scripts\activate.ps1
pip install -e .
The default installation uses the CPU-only version of PyTorch. If you need GPU support, please refer to the uv PyTorch integration guide for instructions on installing PyTorch with CUDA support.
The documentation for PyKoopman is hosted on Read the Docs.
We welcome contributions to PyKoopman. To contribute a new feature please submit a pull request. To get started we recommend installing the packages in "developer mode" via
python -m pip install -e ".[dev]"
The dev extra adds the test, documentation and notebook tools, so you can run the unit tests and format your code (.[test] is enough for the tests alone). With uv, uv sync --python 3.11 --extra dev sets up the same environment and uv run pytest runs the tests. To be accepted your code should conform to PEP8 and pass all unit tests. Code can be tested by invoking
pytest
We recommed using pre-commit to format your code. Once you have staged changes to commit
git add path/to/changed/file.py
you can run the following to automatically reformat your staged code
pre-commit run -a -v
Note that you will then need to re-stage any changes pre-commit made to your code.
If you find a bug in the code or want to request a new feature, please open an issue.
Known issues:
@article{Pan2024, doi = {10.21105/joss.05881},
url = {https://doi.org/10.21105/joss.05881},
year = {2024},
publisher = {The Open Journal},
volume = {9},
number = {94},
pages = {5881},
author = {Shaowu Pan and Eurika Kaiser and Brian M. de Silva and J. Nathan Kutz and Steven L. Brunton},
title = {PyKoopman: A Python Package for Data-Driven Approximation of the Koopman Operator},
journal = {Journal of Open Source Software}}
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.