MNISTData.copy#

MNISTData.copy(n_samples: Optional[int] = None, shuffle: bool = False, random_state: Optional[int] = None) VD[source]#

Create new copy of this object, with the data-loader and dataset also copied, and altered by the given parameters.

Parameters
n_samplesint , default: None

take only this number of samples to the copied DataLoader. The samples which will be chosen are affected by random_state (fixed random state will return consistent samples).

shufflebool, default: False

Whether to shuffle the samples order. The shuffle is affected random_state (fixed random state will return consistent order)

random_stateint , default: None

random_state used for the psuedo-random actions (sampling and shuffling)