pub struct QuantileConfig {
pub levels: Vec<f64>,
pub horizon: usize,
pub initial_window: usize,
pub step: usize,
pub strategy: CalibrationStrategy,
pub conformal: bool,
pub lower_bound: Option<f64>,
pub upper_bound: Option<f64>,
}Expand description
Configuration for QuantileForecaster.
Fields§
§levels: Vec<f64>Quantile levels to produce, each in (0, 1).
horizon: usizeMaximum horizon to calibrate. Residuals are bucketed per step
1..=horizon.
initial_window: usizeNumber of observations in the initial training window.
step: usizeObservations to advance between rolling origins.
strategy: CalibrationStrategyHow to advance the model between origins.
conformal: boolApply the finite-sample conformal rank correction.
lower_bound: Option<f64>Optional hard lower bound on predicted quantiles.
Residual quantiles are additive offsets on the point forecast, so they can cross a physical limit — a PV series bounded at zero can still get a negative lower bound when the point forecast is noisy. Learning the residual shape from data and stating the domain explicitly are different jobs; this is the second one.
upper_bound: Option<f64>Optional hard upper bound on predicted quantiles (e.g. inverter nameplate capacity, 100% state of charge).
Implementations§
Trait Implementations§
Source§impl Clone for QuantileConfig
impl Clone for QuantileConfig
Source§fn clone(&self) -> QuantileConfig
fn clone(&self) -> QuantileConfig
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 QuantileConfig
impl Debug for QuantileConfig
Auto Trait Implementations§
impl Freeze for QuantileConfig
impl RefUnwindSafe for QuantileConfig
impl Send for QuantileConfig
impl Sync for QuantileConfig
impl Unpin for QuantileConfig
impl UnsafeUnpin for QuantileConfig
impl UnwindSafe for QuantileConfig
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more