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

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

于 2020-12-05 发布
0 354
下载积分: 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 个回复

  • LMI+工具箱介绍—matlab
    线性矩阵不等式matlab编程实现,方便快捷。
    2020-12-01下载
    积分:1
  • java_仓库管理系统
    毕业仓库管理系统源码以及需要的资源,有需要的可以直接下载
    2020-12-08下载
    积分:1
  • 基于STM32的机器人控制
    本代码是基于STM32的机器人控制程序,内含舵机控制(辉盛MG995)、电机控制(LMD18200_2.2)、电子罗盘(HMC5883L)、超声波测距(HY-SRFO5)及串口通信五大模块,主程序为中国科大2012年Robotgame献花组比赛的完整程序,功能齐全,欢迎下载。与单片机串口通信的是基于PC的图像处理程序,代码见:http://user.qzone.qq.com/1435589631?ptlang=2052&ADUIN=1163353422&ADSESSION=1348660075&ADTAG=CLIENT.QQ.3307_FriendFolder_QuickMenu.0
    2020-12-04下载
    积分:1
  • PSO粒子群算法,用于路径规划算法
    PSO路径规划算法,源码
    2020-11-28下载
    积分:1
  • 基于DSP的FIR滤波器(ccs模拟 高通 低通 带通)
    在CCS模拟下的DSP 54XX(5416)下的FIR滤波器支持高通,带通和低通。如果需要自己产生滤波系数和数据的话,请用matlab自己产生
    2020-12-02下载
    积分:1
  • ITD分解实验数据,完美运行和显示
    把我们想分析的数据先进行ITD分解,得到我们分解的pr分量,然后在进行分析,得到我们想到的东西。
    2020-12-09下载
    积分:1
  • BMP280最新IIC测试
    PS精确导航(航位推算,上下桥检测等);室内室外导航;休闲、体育和医疗健康等监测 ;天气预报;垂直速度指示(上升/下沉速度);风扇功率控制。
    2020-12-08下载
    积分:1
  • HBase为数据库的web系统
    随着海量数据和云计算的发展,Hadoop集群得到了越来越广泛的应用。而HBase作为Hadoop集群的数据库同样在很多场景中大显身手。同样Hadoop集群的稳定性需要得到实时的监控。存储资源、计算资源、网络资源等发生阻塞或者错误需要及时告知集群管理员。本文实现了基于HBase的网站告警系统。本文中所开发的系统分为告警记录显示、告警记录查询、告警记录确认、告警记录入库、告警记录删除等模块。本文依照需求分析、概要设计、详细设计的软件开发步骤实现了一个基于HBase的网络告警系统。
    2021-05-06下载
    积分:1
  • M序列产生算法及构造伪随机数
    M序列产生算法,M序列构造伪随机数生成器,神经网络,密码安全
    2020-12-01下载
    积分:1
  • MATLAB标定工具箱
    Bouguet的Matlab标定工具箱立体标定,可单目自标定及双目互标定。用法参见:http://blog.csdn.net/hyacinthkiss/article/details/41317087
    2020-12-12下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载