pub struct TimeseriesParameters {
pub context_length: u32,
pub max_horizon: u32,
pub n_quantiles: u32,
pub num_features: u32,
}Expand description
Timeseries forecasting model parameters.
Captures the shape contract of an ONNX timeseries model: how many
historical points it consumes (context_length), how many points it
emits (max_horizon), how many quantiles per step (n_quantiles,
1 for point forecasts), and how many parallel input series it
accepts (num_features, 1 for univariate). Used by
TimeseriesRuntime and the catalog-driven loader to validate
inputs before invoking ORT.
Fields§
§context_length: u32Number of historical points the model conditions on.
max_horizon: u32Maximum number of forecast steps the model can emit in one pass.
n_quantiles: u32Number of quantiles emitted per step (1 = point forecast,
1 = quantile forecast).
num_features: u32Number of input feature channels (1 = univariate;
1 = multivariate / covariate-aware).
Implementations§
Source§impl TimeseriesParameters
impl TimeseriesParameters
Sourcepub fn univariate(context_length: u32, max_horizon: u32) -> Self
pub fn univariate(context_length: u32, max_horizon: u32) -> Self
Construct univariate point-forecast parameters.
Sourcepub fn with_quantiles(self, n_quantiles: u32) -> Self
pub fn with_quantiles(self, n_quantiles: u32) -> Self
Construct quantile-forecast parameters.
Sourcepub fn with_features(self, num_features: u32) -> Self
pub fn with_features(self, num_features: u32) -> Self
Construct multivariate parameters.
Trait Implementations§
Source§impl Clone for TimeseriesParameters
impl Clone for TimeseriesParameters
Source§fn clone(&self) -> TimeseriesParameters
fn clone(&self) -> TimeseriesParameters
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TimeseriesParameters
impl Debug for TimeseriesParameters
Source§impl<'de> Deserialize<'de> for TimeseriesParameters
impl<'de> Deserialize<'de> for TimeseriesParameters
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for TimeseriesParameters
Source§impl PartialEq for TimeseriesParameters
impl PartialEq for TimeseriesParameters
Source§fn eq(&self, other: &TimeseriesParameters) -> bool
fn eq(&self, other: &TimeseriesParameters) -> bool
self and other values to be equal, and is used by ==.