How to get feedforwardnet outputs for all hidden neurons?

6 Ansichten (letzte 30 Tage)
xin hui leong
xin hui leong am 19 Jul. 2021
Beantwortet: Swetha Polemoni am 16 Sep. 2021
I had trained my Neural Network in a loop from 1 to 20 hidden neurons and managed to get 1:20 hidden neurons MSE and RMSE by coding MSE(i),RMSE(i).
However, the same method, e.g y(i) was unable to perform and get all outputs for all hidden neurons. I can't solve the error and couldn't find a way to get the outputs.
If anyone knows the answer, please help me. Thanks.

Antworten (1)

Swetha Polemoni
Swetha Polemoni am 16 Sep. 2021
Hi xin hui leong,
The error "unable to perform assignment because the left and right sides have different number of elements" will occur when you try to assign an array of size 1 x m to another array of size 1 x n, where n and m are different numbers.
In other words if you want to assign any array/matrix to any other array/matrix , the size of both arrays/matrices must be equal. Check the size of yTrain and its left assigned value in order to debug this.

Kategorien

Mehr zu Sequence and Numeric Feature Data Workflows finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by