• 大小: 14.07MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-16
  • 语言: Matlab
  • 标签: matlab  CNN  

资源简介

该工具箱包含CNN,NN,CAE,DBN,SAE等神经网络工具箱。其中CNN工具箱具有详细的中文注释,以便于初学者学习

资源截图

代码片段和文件信息

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  2019-03-15 16:19  DeepLearnToolbox-master\
     文件         249  2015-12-01 18:29  DeepLearnToolbox-master\.travis.yml
     目录           0  2019-03-15 16:19  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  2019-03-15 17:10  DeepLearnToolbox-master\CNN\
     文件         950  2019-03-15 16:43  DeepLearnToolbox-master\CNN\cnnapplygrads.m
     文件        4635  2019-03-15 16:39  DeepLearnToolbox-master\CNN\cnnbp.m
     文件        4008  2019-03-15 16:50  DeepLearnToolbox-master\CNN\cnnff.m
     文件        3430  2015-12-01 18:29  DeepLearnToolbox-master\CNN\cnnnumgradcheck.m
     文件        6397  2019-03-15 17:09  DeepLearnToolbox-master\CNN\cnnsetup.m
     文件         334  2019-03-15 17:37  DeepLearnToolbox-master\CNN\cnntest.m
     文件        2587  2019-03-15 17:01  DeepLearnToolbox-master\CNN\cnntrain.m
     文件         544  2015-12-01 18:29  DeepLearnToolbox-master\CONTRIBUTING.md
     目录           0  2019-03-15 16:19  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
     文件          90  2015-12-01 18:29  DeepLearnToolbox-master\DBN\rbmdown.m
     文件        1401  2015-12-01 18:29  DeepLearnToolbox-master\DBN\rbmtrain.m
     文件          89  2015-12-01 18:29  DeepLearnToolbox-master\DBN\rbmup.m
............此处省略52个文件信息

评论

共有 条评论