Browse Source

prettify "too short timeserie to learn from" error message

pull/69/head
rozetko 3 years ago
parent
commit
ef572afcaa
  1. 2
      server/src/services/analytic_service/analytic_unit/anomaly_analytic_unit.rs

2
server/src/services/analytic_service/analytic_unit/anomaly_analytic_unit.rs

@ -50,7 +50,7 @@ impl SARIMA {
// TODO: trend detection
if ts.len() < 2 {
return Err(anyhow::format_err!("to short timeserie to learn from"));
return Err(anyhow::format_err!("too short timeserie to learn from, timeserie length: {}", ts.len()));
}
// TODO: ensure capacity with seasonality size
let mut res_ts = Vec::<(u64, f64)>::new();

Loading…
Cancel
Save