How to reshape (digitTrain4DArrayData) inbuilt number dataset provided in MATLAB ?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Sudheer Dunna
el 27 de Abr. de 2020
Comentada: debojit sharma
el 9 de Jun. de 2023
digitTrain4DArrayData data set is having dimension of 28 * 28 * 1 * 5000 (5000 samples) . How can we reshape it into 784 * 5000, to train it using neural network pattern recognizer in matlab for ANN.
0 comentarios
Respuesta aceptada
Srivardhan Gadila
el 29 de Abr. de 2020
Editada: Srivardhan Gadila
el 29 de Abr. de 2020
[XTrain,YTrain] = digitTrain4DArrayData;
reshapedXTrain = reshape(XTrain,784,5000);
3 comentarios
debojit sharma
el 9 de Jun. de 2023
With reference to this link https://in.mathworks.com/help/deeplearning/ug/train-stacked-autoencoders-for-image-classification.html
I am trying to implement stacked autoencoder for image classification. But I am not able to understand how can I prepare my dataset to fed into a autoencoder. As it is being said in this link that we need to reshape the training images into a matrix, how can it be done? Please provide a sample code.
Más respuestas (0)
Ver también
Categorías
Más información sobre Image Data Workflows en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!