Main Content

shuffle

Return shuffled version of label datastore

Since R2020a

Description

shuffle(ds) returns a randomly shuffled version of the input datastore.

example

Examples

collapse all

Set the location of the image and pixel label data.

dataDir = fullfile(toolboxdir('vision'), 'visiondata');
pxDir = fullfile(dataDir, 'buildingPixelLabels');

Create a pixel label datastore.

classNames = ["sky" "grass" "building" "sidewalk"];
pixelLabelID = [1 2 3 4];
pxds = pixelLabelDatastore(pxDir, classNames, pixelLabelID);

Create a new randomly shuffled datastore.

shpxds = shuffle(pxds);

Input Arguments

collapse all

Datastore with labeled data for training a semantic segmentation network or an object detection network, specified as a pixelLabelDatastore or a boxLabelDatastore object.

Version History

Introduced in R2020a

See Also

Functions

Objects