pub struct AutoTuner { /* private fields */ }Expand description
AutoTuner handles parameter search over rolling time-series cutoffs
Implementations§
Source§impl AutoTuner
impl AutoTuner
pub fn new(grid: HyperparameterGrid) -> Self
pub fn with_metric(self, metric: OptimizationMetric) -> Self
pub fn with_validation_split( self, initial_window_pct: f64, horizon_days: usize, step_days: usize, ) -> Self
Sourcepub fn fit_and_tune(
&self,
base_model: &ProphetDecomposition,
dates: &[NaiveDate],
values: &Array1<f64>,
) -> Result<AutoTuneResult>
pub fn fit_and_tune( &self, base_model: &ProphetDecomposition, dates: &[NaiveDate], values: &Array1<f64>, ) -> Result<AutoTuneResult>
Run grid search optimization across historical data cuts
Auto Trait Implementations§
impl Freeze for AutoTuner
impl RefUnwindSafe for AutoTuner
impl Send for AutoTuner
impl Sync for AutoTuner
impl Unpin for AutoTuner
impl UnsafeUnpin for AutoTuner
impl UnwindSafe for AutoTuner
Blanket Implementations§
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
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