Intro to Utils
Utils methods acts as a helper, so that you don’t have to implement commonly used function by yourself.
Methods
shuffle
Shuffles the provided arr.
onehotEncode
Returns Array from the passed x after one-hot encoding it as per the classes specified.
createBatch
Returns batches of the array passed as per the specified batchSize.
trainTestSplit
Returns Array of DatasetSlice[trainX,testX,trainY,testY] as per the specified configuration.
References
Some of the functionality is implemented using the awesome resources from the internet.