pub struct ForecastingEngine { /* private fields */ }Expand description
Forecasting engine
Implementations§
Source§impl ForecastingEngine
impl ForecastingEngine
Sourcepub fn initialize(&mut self) -> Result<(), StatisticalError>
pub fn initialize(&mut self) -> Result<(), StatisticalError>
Initializes model selection; StatisticalError propagates.
Sourcepub fn forecasting_models(&self) -> &[ForecastingModel]
pub fn forecasting_models(&self) -> &[ForecastingModel]
Returns the list of registered forecasting models.
Sourcepub fn add_forecasting_model(&mut self, model: ForecastingModel)
pub fn add_forecasting_model(&mut self, model: ForecastingModel)
Register an additional forecasting model if not already present.
Sourcepub fn supports_forecasting_model(&self, model: &ForecastingModel) -> bool
pub fn supports_forecasting_model(&self, model: &ForecastingModel) -> bool
Returns true when the given forecasting model is registered.
Sourcepub fn accuracy_metrics(&self) -> &AccuracyMetrics
pub fn accuracy_metrics(&self) -> &AccuracyMetrics
Returns a reference to the current accuracy metrics.
Sourcepub fn set_accuracy_metrics(&mut self, metrics: AccuracyMetrics)
pub fn set_accuracy_metrics(&mut self, metrics: AccuracyMetrics)
Update the accuracy metrics after a forecasting run.
Sourcepub fn model_selection(&self) -> &ModelSelection
pub fn model_selection(&self) -> &ModelSelection
Returns a reference to the model selection subsystem.
Sourcepub fn model_selection_mut(&mut self) -> &mut ModelSelection
pub fn model_selection_mut(&mut self) -> &mut ModelSelection
Returns a mutable reference to the model selection subsystem.
Auto Trait Implementations§
impl Freeze for ForecastingEngine
impl RefUnwindSafe for ForecastingEngine
impl Send for ForecastingEngine
impl Sync for ForecastingEngine
impl Unpin for ForecastingEngine
impl UnsafeUnpin for ForecastingEngine
impl UnwindSafe for ForecastingEngine
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
Converts
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> ⓘ
Converts
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