#[non_exhaustive]pub struct PredefinedSplit {
pub key: String,
/* private fields */
}Expand description
Assigns input data to training, validation, and test sets based on the value of a provided key.
Supported only for tabular Datasets.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key: StringRequired. The key is a name of one of the Dataset’s data columns.
The value of the key (either the label’s value or value in the column)
must be one of {training, validation, test}, and it defines to which
set the given piece of data is assigned. If for a piece of data the key
is not present or has an invalid value, that piece is ignored by the
pipeline.
Implementations§
Trait Implementations§
Source§impl Clone for PredefinedSplit
impl Clone for PredefinedSplit
Source§fn clone(&self) -> PredefinedSplit
fn clone(&self) -> PredefinedSplit
Returns a copy 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 PredefinedSplit
impl Debug for PredefinedSplit
Source§impl Default for PredefinedSplit
impl Default for PredefinedSplit
Source§fn default() -> PredefinedSplit
fn default() -> PredefinedSplit
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PredefinedSplitwhere
PredefinedSplit: Default,
impl<'de> Deserialize<'de> for PredefinedSplitwhere
PredefinedSplit: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for PredefinedSplit
impl Message for PredefinedSplit
Source§impl PartialEq for PredefinedSplit
impl PartialEq for PredefinedSplit
Source§impl Serialize for PredefinedSplit
impl Serialize for PredefinedSplit
impl StructuralPartialEq for PredefinedSplit
Auto Trait Implementations§
impl Freeze for PredefinedSplit
impl RefUnwindSafe for PredefinedSplit
impl Send for PredefinedSplit
impl Sync for PredefinedSplit
impl Unpin for PredefinedSplit
impl UnwindSafe for PredefinedSplit
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