How to reshape (digitTrain4DArrayData) inbuilt number dataset provided in MATLAB ?
조회 수: 4 (최근 30일)
이전 댓글 표시
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
채택된 답변
Srivardhan Gadila
2020년 4월 29일
편집: Srivardhan Gadila
2020년 4월 29일
[XTrain,YTrain] = digitTrain4DArrayData;
reshapedXTrain = reshape(XTrain,784,5000);
댓글 수: 3
debojit sharma
2023년 6월 9일
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.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Data Workflows에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!