#[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 ==
.