Installation¶
pip install bayesian-changepoint
Using uv:
uv add bayesian-changepoint
The import name is bayesian_changepoint_detection, whatever the
distribution is called:
import bayesian_changepoint_detection
To run the examples and notebooks, add the plot extra
(pip install "bayesian-changepoint[plot]", or ".[plot]" from a clone).
Package names¶
bayesian-changepoint is the distribution name from 1.1.0 on. The same
project was published before as bayescd (0.4, April 2022) and, earlier,
as bayesian-changepoint-detection (0.2.dev1). Both are frozen at those
releases and neither gets updates; if you have one installed, replace it:
pip uninstall bayescd bayesian-changepoint-detection
pip install bayesian-changepoint
The code is the same project and lives in the same repository; only the name on PyPI changed. 1.1.0 is a rewrite on PyTorch relative to 0.4 and changes the online API relative to 1.0.x — the CHANGELOG lists every breaking change.
System Requirements¶
- Python 3.9 or higher
- PyTorch 2.0 or higher (installed automatically). For a CUDA build of PyTorch, install it first following https://pytorch.org/get-started/locally/; the CPU build is enough for everything in this README.