#[non_exhaustive]pub struct TimestampSplit {
pub training_fraction: f64,
pub validation_fraction: f64,
pub test_fraction: f64,
pub key: String,
/* private fields */
}Expand description
Assigns input data to training, validation, and test sets based on a provided timestamps. The youngest data pieces are assigned to training set, next to validation set, and the oldest to the test set.
Supported only for tabular Datasets.
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.
key: StringRequired. The key is a name of one of the Dataset’s data columns.
The values of the key (the values in the column) must be in RFC 3339
date-time format, where time-offset = "Z"
(e.g. 1985-04-12T23:20:50.52Z). If for a piece of data the key is not
present or has an invalid value, that piece is ignored by the pipeline.
Implementations§
Source§impl TimestampSplit
impl TimestampSplit
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 TimestampSplit
impl Clone for TimestampSplit
Source§fn clone(&self) -> TimestampSplit
fn clone(&self) -> TimestampSplit
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more