登录
首页 » Others » 稀疏自编码深度学习的Matlab实现

稀疏自编码深度学习的Matlab实现

于 2020-12-05 发布
0 205
下载积分: 1 下载次数: 3

代码说明:

稀疏自编码深度学习的Matlab实现,sparse Auto coding,Matlab codetrain, m/7% CS294A/CS294W Programming Assignment Starter CodeInstructions%%%This file contains code that helps you get started ontheprogramming assignment. You will need to complete thecode in sampleIMAgEsml sparseAutoencoder Cost m and computeNumericalGradientml For the purpose of completing the assignment, you domot need tochange the code in this filecurer:YiBinYUyuyibintony@163.com,WuYiUniversityning, MATLAB Code for Sparse Autoencodtrain.m∥%%========%6% STEP 0: Here we provide the relevant parameters valuesthat willl allow your sparse autoencoder to get good filters; youdo not need to9 change the parameters belowvisibleSize =8*8; number of input unitshiddensize 25number of hidden unitssparsity Param =0.01; desired average activation ofthe hidden units7 (This was denoted by the greek alpharho, which looks like a lower-case pcurer:YiBinYUyuyibintony@163.com,WuYiUniversityning, MATLAB Code for Sparse Autoencod4/57train.,m∥in the lecture notes)1 ambda=0.0001%o weight decay parameterbeta 3%o weight of sparsity penalty term%%==:79 STEP 1: Implement sampleIMAGESAfter implementing sampleIMAGES, the display_networkcommand shouldfo display a random sample of 200 patches from the datasetpatches sampleIMAgES;display_network(patches(:, randi(size(patches, 2), 204, 1)), 8)%为产生一个204维的列向量,每一维的值为0~10000curer:YiBinYUyuyibintony@163.com,WuYiUniversityning, MATLAB Code for Sparse Autoencod5/57train.m/v%中的随机数,说明是随机取204个 patch来显示%o Obtain random parameters thetatheta= initializeParameters ( hiddenSize, visibleSize)%%=============三三三三====================================97 STEP 2: Implement sparseAutoencoder CostYou can implement all of the components (squared errorcost, weight decay termsparsity penalty) in the cost function at once, butit may be easier to do%o it step-by-step and run gradient checking (see STEP3 after each stepWecurer:YiBinYUyuyibintony@163.com,WuYiUniversityning, MATLAB Code for Sparse Autoencod6/57train. m vb suggest implementing the sparseAutoencoder Cost functionusing the following steps(a) Implement forward propagation in your neural networland implement the%squared error term of the cost function. Implementbackpropagation tocompute the derivatives. Then (using lambda=beta=(run gradient Checking%to verify that the calculations corresponding tothe squared error costterm are correctcurer:YiBinYUyuyibintony@163.com,WuYiUniversityning, MATLAB Code for Sparse Autoencod7/57train. m vl(b) Add in the weight decay term (in both the cost funcand the derivativecalculations), then re-run Gradient Checking toverify correctnessl (c) Add in the sparsity penalty term, then re-run gradiChecking toverify correctnessFeel free to change the training settings when debuggingyour%o code. (For example, reducing the training set sizecurer:YiBinYUyuyibintony@163.com,WuYiUniversityning, MATLAB Code for Sparse Autoencod8/57train m vl/number of hidden units may make your code run fasterand setting betaand/or lambda to zero may be helpful for debuggingHowever, in yourfinal submission of the visualized weights, please useparameters web gave in Step 0 abovecoS七grad]sparseAutoencoderCost(theta, visibleSize,hiddensize, lambda,sparsityParam, beta,patches)二〓二二二二二二二〓二〓二〓二〓=二====〓=curer:YiBinYUyuyibintony@163.com,WuYiUniversityning, MATLAB Code for Sparse Autoencod9/57train.m vlll96% STeP 3: Gradient CheckingHint: If you are debugging your code, performing gradienchecking on smaller modelsand smaller training sets (e. g, using only 10 trainingexamples and 1-2 hiddenunits) may speed things upl First, lets make sure your numerical gradient computationis correct for a%o simple function. After you have implemented computeNumerun the followingcheckNumericalGradientocurer:YiBinYUyuyibintony@163.com,WuYiUniversityDeep Learning, MATLAB Code for Sparse Autoencode10/57

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论


0 个回复

  • 好用KIS全系列写狗工具——12.1专业版yt88.part2.rar
    好用KIS全系列写狗工具——12.1专业版yt88.part2.rar 后面还有 part1,part3 一起解压才可以使用
    2020-11-02下载
    积分:1
  • 小波变换的去基线
    【实例简介】利用小波变换多分辨率的特性,对EEG信号进行了有效地去基线漂移。
    2021-11-16 00:43:11下载
    积分:1
  • matlab 神经网络的文字识别 有详细注释-补充样本
    之前上传过 《matlab 神经网络的文字识别 有详细注释》这个贴,有人评论说 不会运行。 是样本文件需要自己添加,特此 上传样本文件,方便大家。 所有文件放进一个工程,运行主程序即可!
    2020-12-04下载
    积分:1
  • 产生LFM信号分析其频谱运用频域匹配滤波器
    产生线性调频连续波,并分析其频谱,运用频域匹配滤波器
    2020-12-04下载
    积分:1
  • c++及sql server 2005企业人事管理系统.rar
    【实例简介】含源程序,使用说明和数据库文件。注意:打开工程文件,进入到Visual C++开发环境中,在“StdAfx.h”文件中更改连接SQL Server2005的服务器名称。简介:人力资源管理系统是这样的一种管理软件,它能够快速、方便地显示结果,还可以对有关工资的各种信息进行统计,服务于财务部门及公司主要管理者。实施人力资源管理系统可以集中、整合各种信息来源,有利于降底管理成本,提高公司管理效率和水平,从而促进公司的进一步发展和变革。
    2021-11-21 00:37:45下载
    积分:1
  • 自动取料机械手CAD全套图纸.dwg
    【实例简介】图纸之多,多达到8个图纸,十分复杂的外形线条,一旦深入其中,便得到其乐无穷。
    2021-12-06 00:34:23下载
    积分:1
  • 平方根无迹卡尔曼滤波序,包含注释
    本人手写的简单的平方根无迹卡尔曼滤波程序,包含注释,对刚接触滤波算法的新手有一定帮助,可以适当参考。
    2020-12-01下载
    积分:1
  • Visio常用图库
    Visio常用图库,包括常用符号,常用标号,地图标号,网络与设备,办公设备,工作流程图表,以及各种图形。
    2021-05-06下载
    积分:1
  • DFT多相滤波器组信道化结构
    描述了16通道DFT多相滤波器组信道化结构,输出为16个子信道的信号,程序包括滤波器设计
    2020-11-28下载
    积分:1
  • Turbo 码MAP 译码算法的研究与仿真
    【实例简介】1993 年,法国的C.Berrou 等人提出了一种新的纠错编码方式—Turbo 码,当交织 长度足够长时,其性能接近Shannon 信道编码极限值,因此Turbo 码的出现,被看作是信道 编码理论发展史的一个里程碑,它使人们设计信道编码的方法从增加码的最小汉明距离转向 减少低重量码字的个数。Turbo 码性能优异,已经被确定为第三代通信系统的信道编码方案 之一。本文介绍了Turbo 码的编译码原理及其在TD-SCDMA 通信系统中的应用情况;结合 Turbo 码的迭代译码过程,重点讨论MAP 译码算法的详细推导和具体应用方法;根据 3GPP25.222 协议中定义的Turbo 码标准,从不同角度进行MAP 译码算法的MATLAB 仿真。 根据仿真结果,分析MAP 算法的译码性能,并且就设计参数对译码性能的影响进行了比较 性分析。
    2021-11-13 00:31:39下载
    积分:1
  • 696518资源总数
  • 105306会员总数
  • 25今日下载