The IDLmlShuffle procedure shuffles features and values to create a random reordering of training data used for machine learning applications. The shuffling occurs in-place, and the input array(s) will be modified.
Example
Features = Transpose([255, 223, 110, 25, 99, 105, 66, 3, 87, 160])
Values = [1,2,2,3,3,3,4,4,4,4]
Print, 'Before shuffling'
Print, Features
Print, Values
IDLmlShuffle, features, values
Print, Features
Print, Values
Syntax
IDLmlShuffle, Features, Values [, Keywords=value]
Arguments
Features
Specify an array of features of size n x m, where n is the number of attributes and m is the number of examples.
Values (optional)
Specify an array of values of size m, where m is the number of examples.
Keywords
INDEX (optional)
Set this keyword to specify the indices to use to shuffle the data.
SEED (optional)
If repeatability is desired (such as for testing), set this keyword to the seed variable used to randomly initialize the weights.
Version History
See Also
IDLmlPartition