资源简介

Matlab深度学习工具箱 deep learning toolbox

资源截图

代码片段和文件信息

function cae = caeapplygrads(cae)
    cae.sv = 0;
    for j = 1 : numel(cae.a)
        for i = 1 : numel(cae.i)
%             cae.vik{i}{j} = cae.momentum * cae.vik{i}{j} + cae.alpha ./ (cae.sigma + cae.ddik{i}{j}) .* cae.dik{i}{j};
%             cae.vok{i}{j} = cae.momentum * cae.vok{i}{j} + cae.alpha ./ (cae.sigma + cae.ddok{i}{j}) .* cae.dok{i}{j};
            cae.vik{i}{j} = cae.alpha * cae.dik{i}{j};
            cae.vok{i}{j} = cae.alpha * cae.dok{i}{j};
            cae.sv = cae.sv + sum(cae.vik{i}{j}(:) .^ 2);
            cae.sv = cae.sv + sum(cae.vok{i}{j}(:) .^ 2);

            cae.ik{i}{j} = cae.ik{i}{j} - cae.vik{i}{j};
            cae.ok{i}{j} = cae.ok{i}{j} - cae.vok{i}{j};
        end
%         cae.vb{j} = cae.momentum * cae.vb{j} + cae.alpha / (cae.sigma + cae.ddb{j}) * cae.db{j};
        cae.vb{j} = cae.alpha * cae.db{j};
        cae.sv = cae.sv + sum(cae.vb{j} .^ 2);

        cae.b{j} = cae.b{j} - cae.vb{j};
    end

    for i = 1 : numel(cae.o)
%         cae.vc{i} = cae.momentum * cae.vc{i} + cae.alpha / (cae.sigma + cae.ddc{i}) * cae.dc{i};
        cae.vc{i} = cae.alpha * cae.dc{i};
        cae.sv = cae.sv + sum(cae.vc{i} .^ 2);

        cae.c{i} = cae.c{i} - cae.vc{i};
    end
end

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-05-11 12:46  DeepLearnToolbox-master\
     文件         249  2014-05-11 12:46  DeepLearnToolbox-master\.travis.yml
     目录           0  2014-05-11 12:46  DeepLearnToolbox-master\CAE\
     文件        1219  2014-05-11 12:46  DeepLearnToolbox-master\CAE\caeapplygrads.m
     文件         917  2014-05-11 12:46  DeepLearnToolbox-master\CAE\caebbp.m
     文件        1011  2014-05-11 12:46  DeepLearnToolbox-master\CAE\caebp.m
     文件         259  2014-05-11 12:46  DeepLearnToolbox-master\CAE\caedown.m
     文件         754  2014-05-11 12:46  DeepLearnToolbox-master\CAE\caeexamples.m
     文件        3618  2014-05-11 12:46  DeepLearnToolbox-master\CAE\caenumgradcheck.m
     文件         845  2014-05-11 12:46  DeepLearnToolbox-master\CAE\caesdlm.m
     文件        1148  2014-05-11 12:46  DeepLearnToolbox-master\CAE\caetrain.m
     文件         489  2014-05-11 12:46  DeepLearnToolbox-master\CAE\caeup.m
     文件         173  2014-05-11 12:46  DeepLearnToolbox-master\CAE\max3d.m
     文件        1937  2014-05-11 12:46  DeepLearnToolbox-master\CAE\scaesetup.m
     文件         270  2014-05-11 12:46  DeepLearnToolbox-master\CAE\scaetrain.m
     目录           0  2014-05-11 12:46  DeepLearnToolbox-master\CNN\
     文件         575  2014-05-11 12:46  DeepLearnToolbox-master\CNN\cnnapplygrads.m
     文件        2141  2014-05-11 12:46  DeepLearnToolbox-master\CNN\cnnbp.m
     文件        1774  2014-05-11 12:46  DeepLearnToolbox-master\CNN\cnnff.m
     文件        3430  2014-05-11 12:46  DeepLearnToolbox-master\CNN\cnnnumgradcheck.m
     文件        2020  2014-05-11 12:46  DeepLearnToolbox-master\CNN\cnnsetup.m
     文件         193  2014-05-11 12:46  DeepLearnToolbox-master\CNN\cnntest.m
     文件         845  2014-05-11 12:46  DeepLearnToolbox-master\CNN\cnntrain.m
     文件         544  2014-05-11 12:46  DeepLearnToolbox-master\CONTRIBUTING.md
     目录           0  2014-05-11 12:46  DeepLearnToolbox-master\DBN\
     文件         557  2014-05-11 12:46  DeepLearnToolbox-master\DBN\dbnsetup.m
     文件         232  2014-05-11 12:46  DeepLearnToolbox-master\DBN\dbntrain.m
     文件         425  2014-05-11 12:46  DeepLearnToolbox-master\DBN\dbnunfoldtonn.m
     文件          90  2014-05-11 12:46  DeepLearnToolbox-master\DBN\rbmdown.m
     文件        1401  2014-05-11 12:46  DeepLearnToolbox-master\DBN\rbmtrain.m
     文件          89  2014-05-11 12:46  DeepLearnToolbox-master\DBN\rbmup.m
............此处省略52个文件信息

评论

共有 条评论