matlab.io.datastore.Shuffleable.shuffle - Return a shuffled version of a datastore - MATLAB (original) (raw)
Main Content
Class: matlab.io.datastore.Shuffleable
Namespace: matlab.io.datastore
Return a shuffled version of a datastore
Description
[ds2](#d126e1640497) = shuffle([ds](#d126e1640469))
shuffles samples of the datastore ds
in random order, and returns the shuffled datastore, ds2
.
Input Arguments
ds
— Input datastore
matlab.io.Datastore
object
Output Arguments
ds2
— Shuffled datastore
matlab.io.Datastore
object
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