#[non_exhaustive]pub struct FractionSplit {
pub training_fraction: f64,
pub validation_fraction: f64,
pub test_fraction: f64,
/* private fields */
}Expand description
Assigns the input data to training, validation, and test sets as per the
given fractions. Any of training_fraction, validation_fraction and
test_fraction may optionally be provided, they must sum to up to 1. If the
provided ones sum to less than 1, the remainder is assigned to sets as
decided by Vertex AI. If none of the fractions are set, by default roughly
80% of data is used for training, 10% for validation, and 10% for test.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.training_fraction: f64The fraction of the input data that is to be used to train the Model.
validation_fraction: f64The fraction of the input data that is to be used to validate the Model.
test_fraction: f64The fraction of the input data that is to be used to evaluate the Model.
Implementations§
Source§impl FractionSplit
impl FractionSplit
pub fn new() -> Self
Sourcepub fn set_training_fraction<T: Into<f64>>(self, v: T) -> Self
pub fn set_training_fraction<T: Into<f64>>(self, v: T) -> Self
Sets the value of training_fraction.
Sourcepub fn set_validation_fraction<T: Into<f64>>(self, v: T) -> Self
pub fn set_validation_fraction<T: Into<f64>>(self, v: T) -> Self
Sets the value of validation_fraction.
Sourcepub fn set_test_fraction<T: Into<f64>>(self, v: T) -> Self
pub fn set_test_fraction<T: Into<f64>>(self, v: T) -> Self
Sets the value of test_fraction.
Trait Implementations§
Source§impl Clone for FractionSplit
impl Clone for FractionSplit
Source§fn clone(&self) -> FractionSplit
fn clone(&self) -> FractionSplit
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more