フィルターのクリア

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.

採用された回答

Srivardhan Gadila
Srivardhan Gadila 2020 年 4 月 29 日
編集済み: Srivardhan Gadila 2020 年 4 月 29 日
[XTrain,YTrain] = digitTrain4DArrayData;
Use the reshape function as follows:
reshapedXTrain = reshape(XTrain,784,5000);
  3 件のコメント
Sudheer Dunna
Sudheer Dunna 2020 年 4 月 30 日
Sir, do you have any idea of training digitTrain4DArrayData (Inbuilt matlab digit data) using Naive bayesian (fitcnb).
inputNaive=fitcnb(inputs,targets)
inputs ( 60000*784) double
targets (6000*1) (tried with double and categorial type)
While training it is showing some error like : A normal distribution cannot be fir for the combination of class 1 and predictor X1. The data has zero variance.
debojit sharma
debojit sharma 2023 年 6 月 9 日
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 ExchangeImage Data Workflows についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by