isShuffleable
Determine whether datastore is shuffleable
Syntax
Description
tf = isShuffleable(
returns logicalds
)1
(true
) if the datastoreds
is shuffleable. Otherwise, the result is logical0
(false
).
TransformedDatastore
is shuffleable if all underlying datastores are shuffleable.CombinedDatastore
is shuffleable if all underlying datastores have asubset
method or are transformations/combinations of datastores that havesubset
methods..Custom datastore classes are shuffleable if they subclass from
matlab.io.datastore.Shuffleable
.
You can use theshuffle
function on shuffleable datastores to randomize the ordering of files, while preserving the row associations of files in different datastores.