matlab.io.datastore.Shuffleable.shuffle - Return a shuffled version of a datastore - MATLAB (original) (raw)
Class: matlab.io.datastore.Shuffleable
Namespace: matlab.io.datastore
Return a shuffled version of a datastore
Syntax
ds2 = shuffle(ds)
Description
[ds2](#d126e1657812) = shuffle([ds](#d126e1657784))
shuffles samples of the datastore ds
in random order, and returns the shuffled datastore, ds2
.
Input Arguments
Input datastore, specified as a matlab.io.Datastore object.
Output Arguments
Shuffled datastore, returned as a matlab.io.Datastore object.
Attributes
Abstract | true |
---|
To learn about attributes of methods, seeMethod Attributes.
Tips
- You must implement the
shuffle
method by deriving a subclass from the matlab.io.datastore.Shuffleable class. For more information, seeDevelop Custom Datastore.
Version History
Introduced in R2018a