Skip to main content

Forecaster

Trait Forecaster 

Source
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§

Source

fn load(gguf_path: &Path, config: Self::Config) -> Result<Self>

Source

fn forecast( &self, context: &[Vec<f32>], mask: &[Vec<bool>], horizon: usize, ) -> Result<QuantileMatrix>

context[variate][timestep], mask[variate][timestep] (true = observed). Returns quantiles[quantile_level][variate][horizon_step].

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§