Struct google_api_proto::google::cloud::aiplatform::v1::StratifiedSplit
source · pub struct StratifiedSplit {
pub training_fraction: f64,
pub validation_fraction: f64,
pub test_fraction: f64,
pub key: String,
}
Expand description
Assigns input data to the training, validation, and test sets so that the
distribution of values found in the categorical column (as specified by the
key
field) is mirrored within each split. The fraction values determine
the relative sizes of the splits.
For example, if the specified column has three values, with 50% of the rows having value “A”, 25% value “B”, and 25% value “C”, and the split fractions are specified as 80/10/10, then the training set will constitute 80% of the training data, with about 50% of the training set rows having the value “A” for the specified column, about 25% having the value “B”, and about 25% having the value “C”.
Only the top 500 occurring values are used; any values not in the top 500 values are randomly assigned to a split. If less than three rows contain a specific value, those rows are randomly assigned.
Supported only for tabular Datasets.
Fields§
§training_fraction: f64
The fraction of the input data that is to be used to train the Model.
validation_fraction: f64
The fraction of the input data that is to be used to validate the Model.
test_fraction: f64
The fraction of the input data that is to be used to evaluate the Model.
key: String
Required. The key is a name of one of the Dataset’s data columns. The key provided must be for a categorical column.
Trait Implementations§
source§impl Clone for StratifiedSplit
impl Clone for StratifiedSplit
source§fn clone(&self) -> StratifiedSplit
fn clone(&self) -> StratifiedSplit
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StratifiedSplit
impl Debug for StratifiedSplit
source§impl Default for StratifiedSplit
impl Default for StratifiedSplit
source§impl Message for StratifiedSplit
impl Message for StratifiedSplit
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for StratifiedSplit
impl PartialEq for StratifiedSplit
source§fn eq(&self, other: &StratifiedSplit) -> bool
fn eq(&self, other: &StratifiedSplit) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StratifiedSplit
Auto Trait Implementations§
impl Freeze for StratifiedSplit
impl RefUnwindSafe for StratifiedSplit
impl Send for StratifiedSplit
impl Sync for StratifiedSplit
impl Unpin for StratifiedSplit
impl UnwindSafe for StratifiedSplit
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request