Are the training and testing images in the example train stacked autoencoder the same?

3 ビュー (過去 30 日間)
tejaswi n rao
tejaswi n rao 2018 年 8 月 28 日
コメント済み: debojit sharma 2023 年 6 月 9 日
https://www.mathworks.com/help/nnet/examples/train-stacked-autoencoders-for-image-classification.html
in the above example are they considering the same training set data as the testing data with jumbled sequence?or are they using 2 different datasets? can anybody please answer this
  1 件のコメント
CHHAVI
CHHAVI 2020 年 7 月 7 日
How can i use cross validation in this example instead of dividing data in training and testing?

サインインしてコメントする。

回答 (1 件)

Vishal Bhutani
Vishal Bhutani 2018 年 8 月 31 日
Based on my understanding you want to know about the dataset for training and testing in stacked autoencoder. The datasets used for training and testing are different. They both are synthetic dataset, synthetic images have been generated by applying random affine transformations to digit images created using different fonts. And as you may aware, in Neural Networks both training and testing data is different. And as mentioned in the code while loading training and testing data separate dataset is loaded.
% Load the training data into memory
[xTrainImages,tTrain] = digitTrainCellArrayData;
% Load the test images
[xTestImages,tTest] = digitTestCellArrayData;
Hope it might help you.
  1 件のコメント
debojit sharma
debojit sharma 2023 年 6 月 9 日
Suppose I have 4 different classes of images organized in separate folders for each class. How can I prepare these dataset to fed to a stacked autoencoder? Like in this example how 'digitTrainCellArrayData' dataset is prepared so as to make it ready to fed in a autoencoder. Please provide a sample code for this

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by