MISO System. LSTM
6 次查看(过去 30 天)
显示 更早的评论
Hello. I have a MIMO (multiple input-single output) system. Each of the two inputs has 100 random values. The only output has 100 values.
I put the entries as an array of cells:
sim_in = {v , p}';
and I pick up the output:
sim_out = {h1.Data}';
When training the network I get the error "Invalid training data. Predictors and responses must have the same number of observations." What would be the solution? Thank you.
0 个评论
采纳的回答
Aman
2024-4-16
Hi Jesus,
This error occurs due to a dimension mismatch between the targets and the network output.
Since you are using a MISO neural net, it is better to concatenate the inputs along the appropriate dimension and reshape your output data, as we give a single input and single output to the "trainNetwork" function.
You can refer to the thread below, which discusses the same issue.
Hoping it will help you move ahead with your workflow.
更多回答(1 个)
另请参阅
类别
在 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!