Breakout Python
🔥 BreakoutDetection for Python
Learn how it works
Installation
Run:
pip install breakout-detection
Getting Started
Detect breakouts in a time series
from breakout import breakout
series = [100, 150, 136, ...]
breakout(series)
Options
Pass options - default values below
breakout(
series,
min_size=30, # minimum observations between breakouts
method='multi', # multi or amoc (at most one change)
degree=1, # degree of the penalization polynomial (multi only)
beta=0.008, # penalization term (multi only)
percent=None, # minimum percent change in goodness of fit statistic (multi only)
alpha=2, # weight of the distance between observations (amoc only)
exact=True # exact or approximate median (amoc only)
)
Credits
This library uses the C++ code from the BreakoutDetection R package and is available under the same license.
References
History
View the changelog
Contributing
Everyone is encouraged to help improve this project. Here are a few ways you can help:
- Report bugs
- Fix bugs and submit pull requests
- Write, clarify, or fix documentation
- Suggest or add new features
To get started with development:
git clone https://github.com/ankane/breakout-python.git
cd breakout-python
pip install --group dev
pip install -e .
pytest
Metadata
Release files for breakout-detection 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| breakout_detection-0.3.0.tar.gz | 16.4 kB | Details |
Release files / breakout_detection-0.3.0.tar.gz
| Download URL | breakout_detection-0.3.0.tar.gz |
|---|---|
| Size | 16.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
37719c1427ba33600149279c56494f95586fb45d9e959e45b884cddd0495b46d
|
|
BLAKE2b-256 checksum How to use checksums |
49e922752ee0f0d936616d959ffcf8cd761fdcf3d7dbe9676a18d8e6416547b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|