pub struct ModelSelection {
pub label: String,
pub model_type: ModelType,
pub score: f64,
pub metric: SelectionMetric,
pub candidates: Vec<CandidateScore>,
pub rejected: Vec<(String, String)>,
pub period: Option<usize>,
pub differencing_order: usize,
pub folds: usize,
pub min_train_size: usize,
}Expand description
What select_model chose, and everything it had to work with.
Fields§
§label: StringWinning model’s label.
model_type: ModelTypeWinning model’s family.
score: f64Winning score under Self::metric.
metric: SelectionMetricThe metric that decided it.
candidates: Vec<CandidateScore>Every candidate that produced a score, best first.
rejected: Vec<(String, String)>Candidates that could not be scored, with the reason. Reported rather than dropped: “SARIMA was not considered” and “SARIMA lost” are very different answers to “why is my forecast not seasonal?”.
period: Option<usize>Seasonal period used, if any.
differencing_order: usizeDifferencing order the KPSS test asked for.
folds: usizeRolling origins each candidate was scored over.
min_train_size: usizeObservations in the first fold’s training window.
Trait Implementations§
Source§impl Clone for ModelSelection
impl Clone for ModelSelection
Source§fn clone(&self) -> ModelSelection
fn clone(&self) -> ModelSelection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ModelSelection
impl RefUnwindSafe for ModelSelection
impl Send for ModelSelection
impl Sync for ModelSelection
impl Unpin for ModelSelection
impl UnsafeUnpin for ModelSelection
impl UnwindSafe for ModelSelection
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
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> 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> ⓘ
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