19 releases (5 breaking)

new 0.6.2 Nov 10, 2024
0.6.1 Nov 9, 2024
0.5.4 Oct 28, 2024
0.4.3 Oct 18, 2024
0.1.0 Sep 25, 2023

#940 in Development tools

Download history 228/week @ 2024-07-25 64/week @ 2024-08-01 7/week @ 2024-08-08 4/week @ 2024-08-15 2/week @ 2024-08-29 7/week @ 2024-09-05 4/week @ 2024-09-12 19/week @ 2024-09-19 28/week @ 2024-09-26 60/week @ 2024-10-03 340/week @ 2024-10-10 475/week @ 2024-10-17 486/week @ 2024-10-24 98/week @ 2024-10-31 365/week @ 2024-11-07

1,728 downloads per month
Used in 3 crates

MIT/Apache

180KB
3K SLoC

Exponential smoothing models

This crate provides exponential smoothing models for time series forecasting in the augurs framework. The models are implemented entirely in Rust and are based on the statsforecast Python package.

Important: This crate is still in development and the API is subject to change. Seasonal models are not yet implemented, and some model types have not been tested.

Example

use augurs::ets::AutoETS;

let data: Vec<_> = (0..10).map(|x| x as f64).collect();
let mut search = AutoETS::new(1, "ZZN")
    .expect("ZZN is a valid model search specification string");
let model = search.fit(&data).expect("fit should succeed");
let forecast = model.predict(5, 0.95);
assert_eq!(forecast.point.len(), 5);
assert_eq!(forecast.point, vec![10.0, 11.0, 12.0, 13.0, 14.0]);

Credits

This implementation is based heavily on the statsforecast implementation.

References

Dependencies

~5.5MB
~111K SLoC