Error using trainNetwork when having 3 parameter in X and one in Y

4 ビュー (過去 30 日間)
Deepak
Deepak 2023 年 1 月 9 日
回答済み: Swaraj 2023 年 4 月 6 日
The training sequences are of feature dimension 472 but the input layer expects sequences of
feature dimension 3.
Pls tell me how i can stop getting this error.
  1 件のコメント
David Ho
David Ho 2023 年 1 月 10 日
Hello Deepak,
Are you able to share an example of code that reproduces this error? This would help the community here to try and work out how to resolve the issue.

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

回答 (1 件)

Swaraj
Swaraj 2023 年 4 月 6 日
Hi,
I understand your problem and go through the possible reasons for it.
The dimensions of the input sequences that your neural network model anticipates do not coincide with the dimensions of your training data, which results in this error. Your input sequence's time steps each have 472 features because the training data's feature dimension is 472. Nevertheless, because your input layer is set up to anticipate sequences of 3 characteristics, each time step in the input sequence must have 3 features.
Go through the following documentation for understanding trainNetwork.
I hope it helps.
Thanks!!

カテゴリ

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