Reverse Engineering traingd in ANN?

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!

답변 (1개)

Greg Heath
Greg Heath 2014년 3월 20일

0 개 추천

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

Kannan
Kannan 2014년 3월 28일
편집: Kannan 2014년 3월 28일
Had a hard time going through utility functions, in vain. Anyway, Thanks a lot. By the way, have you ever tried it yourself?
Greg Heath
Greg Heath 2014년 3월 28일
No.
Kannan
Kannan 2014년 3월 28일
Hurray! Successfully calculated 'change in weight/bias' for the output layer. Moving on to hidden layer now.
Greg Heath
Greg Heath 2014년 3월 28일
Good Luck

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

질문:

2014년 3월 19일

댓글:

2014년 3월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by