in MATLAB R 2023 where can i see the weights and bias value

1 Ansicht (letzte 30 Tage)
vengatesh
vengatesh am 2 Nov. 2023
Beantwortet: R am 14 Nov. 2023
in MATLAB R 2023 where can i see the weights and bias value
  2 Kommentare
Dyuman Joshi
Dyuman Joshi am 2 Nov. 2023
Weights and bias value of what?
vengatesh
vengatesh am 3 Nov. 2023
in the MATLAB R2021 version, I can see the ANN weights and bias in network TAB but in version 2023 I could not see the option

Melden Sie sich an, um zu kommentieren.

Antworten (1)

R
R am 14 Nov. 2023
Hi Vengatesh,
I understand that you are unable to see the weights and bias values of a neural network via the Network tab.
You can work around this issue by accessing these values programmatically. To do this, you can use “getwb” and “separatewb” functions to get and Separate biases and weight values from weight/bias vector. For example:
[x,t] = simplefit_dataset;
net = feedforwardnet(20);
net = train(net,x,t);
wb = getwb(net);
[b,iw,lw] = separatewb(net,wb);
In the above example, “b”,iw” and “lw” are bias, input weights and layer weights respectively.
Refer to the following MATLAB Documentation to know more about the “getwb” and “separatewb” functions:
Hope this helps!

Kategorien

Mehr zu Deep Learning Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by