pub trait Forecaster: Sized {
type Config;
// Required methods
fn load(gguf_path: &Path, config: Self::Config) -> Result<Self>;
fn forecast(
&self,
context: &[Vec<f32>],
mask: &[Vec<bool>],
horizon: usize,
) -> Result<QuantileMatrix>;
}Expand description
Common interface implemented by every GGUF-quantized zero-shot time-series forecaster in the workspace (Toto, Chronos, TimesFM, …). Lets the CLI and Python bindings dispatch across models without per-model glue code.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".