• 大小:
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2023-06-20
  • 语言: Matlab
  • 标签: matlab  deep  learnin  CNN  

资源简介

Matlab 深度学习工具箱

资源截图

代码片段和文件信息

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  2015-12-01 18:29  DeepLearnToolbox-master\
     文件         249  2015-12-01 18:29  DeepLearnToolbox-master\.travis.yml
     目录           0  2015-12-01 18:29  DeepLearnToolbox-master\CAE\
     文件        1219  2015-12-01 18:29  DeepLearnToolbox-master\CAE\caeapplygrads.m
     文件         917  2015-12-01 18:29  DeepLearnToolbox-master\CAE\caebbp.m
     文件        1011  2015-12-01 18:29  DeepLearnToolbox-master\CAE\caebp.m
     文件         259  2015-12-01 18:29  DeepLearnToolbox-master\CAE\caedown.m
     文件         754  2015-12-01 18:29  DeepLearnToolbox-master\CAE\caeexamples.m
     文件        3618  2015-12-01 18:29  DeepLearnToolbox-master\CAE\caenumgradcheck.m
     文件         845  2015-12-01 18:29  DeepLearnToolbox-master\CAE\caesdlm.m
     文件        1148  2015-12-01 18:29  DeepLearnToolbox-master\CAE\caetrain.m
     文件         489  2015-12-01 18:29  DeepLearnToolbox-master\CAE\caeup.m
     文件         173  2015-12-01 18:29  DeepLearnToolbox-master\CAE\max3d.m
     文件        1937  2015-12-01 18:29  DeepLearnToolbox-master\CAE\scaesetup.m
     文件         270  2015-12-01 18:29  DeepLearnToolbox-master\CAE\scaetrain.m
     目录           0  2015-12-01 18:29  DeepLearnToolbox-master\CNN\
     文件         575  2015-12-01 18:29  DeepLearnToolbox-master\CNN\cnnapplygrads.m
     文件        2141  2015-12-01 18:29  DeepLearnToolbox-master\CNN\cnnbp.m
     文件        1774  2015-12-01 18:29  DeepLearnToolbox-master\CNN\cnnff.m
     文件        3430  2015-12-01 18:29  DeepLearnToolbox-master\CNN\cnnnumgradcheck.m
     文件        2020  2015-12-01 18:29  DeepLearnToolbox-master\CNN\cnnsetup.m
     文件         193  2015-12-01 18:29  DeepLearnToolbox-master\CNN\cnntest.m
     文件         845  2015-12-01 18:29  DeepLearnToolbox-master\CNN\cnntrain.m
     文件         544  2015-12-01 18:29  DeepLearnToolbox-master\CONTRIBUTING.md
     文件         744  2015-12-01 18:29  DeepLearnToolbox-master\create_readme.sh
     目录           0  2015-12-01 18:29  DeepLearnToolbox-master\data\
     文件    14735220  2015-12-01 18:29  DeepLearnToolbox-master\data\mnist_uint8.mat
     目录           0  2015-12-01 18:29  DeepLearnToolbox-master\DBN\
     文件         557  2015-12-01 18:29  DeepLearnToolbox-master\DBN\dbnsetup.m
     文件         232  2015-12-01 18:29  DeepLearnToolbox-master\DBN\dbntrain.m
     文件         425  2015-12-01 18:29  DeepLearnToolbox-master\DBN\dbnunfoldtonn.m
............此处省略52个文件信息

评论

共有 条评论