Class ShuffleConfig
- java.lang.Object
-
- software.amazon.awssdk.services.sagemaker.model.ShuffleConfig
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ShuffleConfig.Builder,ShuffleConfig>
@Generated("software.amazon.awssdk:codegen") public final class ShuffleConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ShuffleConfig.Builder,ShuffleConfig>
A configuration for a shuffle option for input data in a channel. If you use
S3PrefixforS3DataType, the results of the S3 key prefix matches are shuffled. If you useManifestFile, the order of the S3 object references in theManifestFileis shuffled. If you useAugmentedManifestFile, the order of the JSON lines in theAugmentedManifestFileis shuffled. The shuffling order is determined using theSeedvalue.For Pipe input mode, when
ShuffleConfigis 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 whenShuffleConfigis combined withS3DataDistributionTypeofShardedByS3Key, 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.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceShuffleConfig.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ShuffleConfig.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()Longseed()Determines the shuffling order inShuffleConfigvalue.static Class<? extends ShuffleConfig.Builder>serializableBuilderClass()ShuffleConfig.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
seed
public final Long seed()
Determines the shuffling order in
ShuffleConfigvalue.- Returns:
- Determines the shuffling order in
ShuffleConfigvalue.
-
toBuilder
public ShuffleConfig.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ShuffleConfig.Builder,ShuffleConfig>
-
builder
public static ShuffleConfig.Builder builder()
-
serializableBuilderClass
public static Class<? extends ShuffleConfig.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-