1 Star 1 Fork 0

DTC2 / 图像特征提取

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
cnnapplygrads.m 690 Bytes
Copy Edit Raw Blame History
DTC2 authored 2021-04-13 07:46 . 添加代码和数据库
function net = cnnapplygrads(net, opts)
for l = 2 : numel(net.layers)
if strcmp(net.layers{l}.type, 'c')
for j = 1 : numel(net.layers{l}.a)
for ii = 1 : numel(net.layers{l - 1}.a)
% 这里没什么好说的,就是普通的权值更新的公式:W_new = W_old - alpha * de/dW(误差对权值导数)
net.layers{l}.k{ii}{j} = net.layers{l}.k{ii}{j} - opts.alpha * net.layers{l}.dk{ii}{j};
end
net.layers{l}.b{j} = net.layers{l}.b{j} - opts.alpha * net.layers{l}.db{j};
end
end
end
net.ffW = net.ffW - opts.alpha * net.dffW;
net.ffb = net.ffb - opts.alpha * net.dffb;
end
Matlab
1
https://gitee.com/zymITsky/image-feature-extraction.git
git@gitee.com:zymITsky/image-feature-extraction.git
zymITsky
image-feature-extraction
图像特征提取
master

Search