pub struct RegressorConfig { /* private fields */ }Expand description
Fluent configuration builder for DummyRegressor
Implementations§
Source§impl RegressorConfig
impl RegressorConfig
Sourcepub fn strategy(self, strategy: RegressorStrategy) -> Self
pub fn strategy(self, strategy: RegressorStrategy) -> Self
Set the prediction strategy
Sourcepub fn random_state(self, seed: u64) -> Self
pub fn random_state(self, seed: u64) -> Self
Set random state for reproducible results
Sourcepub fn with_description<S: Into<String>>(self, description: S) -> Self
pub fn with_description<S: Into<String>>(self, description: S) -> Self
Add description for documentation
Sourcepub fn reproducible(self) -> Self
pub fn reproducible(self) -> Self
Enable reproducible mode with fixed seed
Sourcepub fn robust_mode(self) -> Self
pub fn robust_mode(self) -> Self
Configure for robust predictions (outlier resistant)
Sourcepub fn probabilistic_mode(self) -> Self
pub fn probabilistic_mode(self) -> Self
Configure for probabilistic predictions
Sourcepub fn time_series_mode(self) -> Self
pub fn time_series_mode(self) -> Self
Configure for time series forecasting
Sourcepub fn build(self) -> DummyRegressor
pub fn build(self) -> DummyRegressor
Build the configured DummyRegressor
Sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
Get the configuration description
Trait Implementations§
Source§impl Clone for RegressorConfig
impl Clone for RegressorConfig
Source§fn clone(&self) -> RegressorConfig
fn clone(&self) -> RegressorConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RegressorConfig
impl Debug for RegressorConfig
Auto Trait Implementations§
impl Freeze for RegressorConfig
impl RefUnwindSafe for RegressorConfig
impl Send for RegressorConfig
impl Sync for RegressorConfig
impl Unpin for RegressorConfig
impl UnwindSafe for RegressorConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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