Deep Learning LSTM sequenceInputLayer - Data normalization on Test Data?

6 ビュー (過去 30 日間)
Barry
Barry 2020 年 8 月 13 日
コメント済み: Barry 2020 年 8 月 17 日
Hi all,
when using the sequenceInputLayer option "Normalization", "zscore" (for example) will the same normalization be applied on the Testing Data when using the classify or predict function? My understanding is that i always have to use the same normalization on the Test Data as i used on the Training Data. Or am i missing something?
Regards,
Barry

採用された回答

Raunak Gupta
Raunak Gupta 2020 年 8 月 16 日
Hi Barry,
The normalization is applied on every batch of the data that passes through any particular data input layer whether being sequenceInputLayer or imageInputLayer. So, when the training or testing happens it calls a forward function which invokes the batch normalization for that input layer with option like “zscore, “zerocenter” etc.
No need to worry about saving any parameter about normalization because it varies from batch to batch but be sure that normalization applies to both training and testing data while passing it through the Network.
  1 件のコメント
Barry
Barry 2020 年 8 月 17 日
Hi Raunak,
thank you very much for your response!

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

その他の回答 (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