Reverse Engineering traingd in ANN?

3 visualizaciones (últimos 30 días)
Kannan
Kannan el 19 de Mzo. de 2014
Comentada: Greg Heath el 28 de Mzo. de 2014
I am sort of trying to reverse engineer traingd algorithm. dWB = param.lr * gWB is the equation shown in traingd.m, would like to understand how gWB is calculated. Any reference/example/sourcecode/backpaper in this regard is much appreciated. Thanks in advance!

Respuestas (1)

Greg Heath
Greg Heath el 20 de Mzo. de 2014
type traingd
% Initialize
startTime = clock;
original_net = net;
[perf,vperf,tperf,gWB,gradient] = nntraining.perfs_grad(net,data,fcns);
...
...
% Gradient Descent
dWB = param.lr * gWB;
WB = WB + dWB;
net = setwb(net,WB);
[perf,vperf,tperf,gWB,gradient] = nntraining.perfs_grad(net,data,fcns);
>> help nntraining
Neural Network Toolbox Utility Functions
This directory contains utility functions. It is recommended these functions not be used as they may be removed or altered in future versions of this software.
So, search for the directory containing utility functions
Hope this help.
Thank you for formally accepting my answer
Greg
  4 comentarios
Kannan
Kannan el 28 de Mzo. de 2014
Hurray! Successfully calculated 'change in weight/bias' for the output layer. Moving on to hidden layer now.
Greg Heath
Greg Heath el 28 de Mzo. de 2014
Good Luck

Iniciar sesión para comentar.

Categorías

Más información sobre Image Data Workflows en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by