Struct aws_sdk_sagemaker::types::ShuffleConfig
source · #[non_exhaustive]pub struct ShuffleConfig {
pub seed: Option<i64>,
}
Expand description
A configuration for a shuffle option for input data in a channel. If you use S3Prefix
for S3DataType
, the results of the S3 key prefix matches are shuffled. If you use ManifestFile
, the order of the S3 object references in the ManifestFile
is shuffled. If you use AugmentedManifestFile
, the order of the JSON lines in the AugmentedManifestFile
is shuffled. The shuffling order is determined using the Seed
value.
For Pipe input mode, when ShuffleConfig
is specified shuffling is done at the start of every epoch. With large datasets, this ensures that the order of the training data is different for each epoch, and it helps reduce bias and possible overfitting. In a multi-node training job when ShuffleConfig
is combined with S3DataDistributionType
of ShardedByS3Key
, the data is shuffled across nodes so that the content sent to a particular node on the first epoch might be sent to a different node on the second epoch.
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.seed: Option<i64>
Determines the shuffling order in ShuffleConfig
value.
Implementations§
source§impl ShuffleConfig
impl ShuffleConfig
source§impl ShuffleConfig
impl ShuffleConfig
sourcepub fn builder() -> ShuffleConfigBuilder
pub fn builder() -> ShuffleConfigBuilder
Creates a new builder-style object to manufacture ShuffleConfig
.
Trait Implementations§
source§impl Clone for ShuffleConfig
impl Clone for ShuffleConfig
source§fn clone(&self) -> ShuffleConfig
fn clone(&self) -> ShuffleConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ShuffleConfig
impl Debug for ShuffleConfig
source§impl PartialEq for ShuffleConfig
impl PartialEq for ShuffleConfig
source§fn eq(&self, other: &ShuffleConfig) -> bool
fn eq(&self, other: &ShuffleConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ShuffleConfig
Auto Trait Implementations§
impl Freeze for ShuffleConfig
impl RefUnwindSafe for ShuffleConfig
impl Send for ShuffleConfig
impl Sync for ShuffleConfig
impl Unpin for ShuffleConfig
impl UnwindSafe for ShuffleConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more