#[non_exhaustive]pub struct AutoMlDataSplitConfigBuilder { /* private fields */ }
Expand description
A builder for AutoMlDataSplitConfig
.
Implementations§
source§impl AutoMlDataSplitConfigBuilder
impl AutoMlDataSplitConfigBuilder
sourcepub fn validation_fraction(self, input: f32) -> Self
pub fn validation_fraction(self, input: f32) -> Self
The validation fraction (optional) is a float that specifies the portion of the training dataset to be used for validation. The default value is 0.2, and values must be greater than 0 and less than 1. We recommend setting this value to be less than 0.5.
sourcepub fn set_validation_fraction(self, input: Option<f32>) -> Self
pub fn set_validation_fraction(self, input: Option<f32>) -> Self
The validation fraction (optional) is a float that specifies the portion of the training dataset to be used for validation. The default value is 0.2, and values must be greater than 0 and less than 1. We recommend setting this value to be less than 0.5.
sourcepub fn get_validation_fraction(&self) -> &Option<f32>
pub fn get_validation_fraction(&self) -> &Option<f32>
The validation fraction (optional) is a float that specifies the portion of the training dataset to be used for validation. The default value is 0.2, and values must be greater than 0 and less than 1. We recommend setting this value to be less than 0.5.
sourcepub fn build(self) -> AutoMlDataSplitConfig
pub fn build(self) -> AutoMlDataSplitConfig
Consumes the builder and constructs a AutoMlDataSplitConfig
.
Trait Implementations§
source§impl Clone for AutoMlDataSplitConfigBuilder
impl Clone for AutoMlDataSplitConfigBuilder
source§fn clone(&self) -> AutoMlDataSplitConfigBuilder
fn clone(&self) -> AutoMlDataSplitConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AutoMlDataSplitConfigBuilder
impl Debug for AutoMlDataSplitConfigBuilder
source§impl Default for AutoMlDataSplitConfigBuilder
impl Default for AutoMlDataSplitConfigBuilder
source§fn default() -> AutoMlDataSplitConfigBuilder
fn default() -> AutoMlDataSplitConfigBuilder
source§impl PartialEq for AutoMlDataSplitConfigBuilder
impl PartialEq for AutoMlDataSplitConfigBuilder
source§fn eq(&self, other: &AutoMlDataSplitConfigBuilder) -> bool
fn eq(&self, other: &AutoMlDataSplitConfigBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for AutoMlDataSplitConfigBuilder
Auto Trait Implementations§
impl Freeze for AutoMlDataSplitConfigBuilder
impl RefUnwindSafe for AutoMlDataSplitConfigBuilder
impl Send for AutoMlDataSplitConfigBuilder
impl Sync for AutoMlDataSplitConfigBuilder
impl Unpin for AutoMlDataSplitConfigBuilder
impl UnwindSafe for AutoMlDataSplitConfigBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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