#time-series #detection #bayesian #online #change #algorithm #changepoint

augurs-changepoint

Changepoint detection using Bayesian Online Change Point Detection and more

4 releases (2 breaking)

0.3.1 Jul 30, 2024
0.3.0 Jul 30, 2024
0.2.0 Jun 5, 2024
0.1.2 May 21, 2024

#513 in Algorithms

Download history 123/week @ 2024-05-16 26/week @ 2024-05-23 90/week @ 2024-05-30 108/week @ 2024-06-06 8/week @ 2024-06-13 1/week @ 2024-06-20 19/week @ 2024-07-04 5/week @ 2024-07-11 194/week @ 2024-07-25 56/week @ 2024-08-01 2/week @ 2024-08-08 2/week @ 2024-08-15

118 downloads per month

MIT/Apache

31KB
577 lines

Changepoint detection models.

This crate provides algorithms for performing changepoint detection.

For now it is mostly just a wrapper around the changepoint crate, with a common Detector trait to allow for more implementations in future.

This crate is alpha quality - APIs will almost certainly change!

Example

use augurs_changepoint::{Detector, DefaultArgpcpDetector};

let data = [0.5, 1.0, 0.4, 0.8, 1.5, 0.9, 0.6, 25.3, 20.4, 27.3, 30.0];
let changepoints = DefaultArgpcpDetector::default().detect_changepoints(&data);
// 0 is always included. 6 is the index prior to the changepoint.
assert_eq!(changepoints, vec![0, 6]);

Credits

The bulk of the actual work is done by the changepoint crate.

Dependencies

~15MB
~261K SLoC