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

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

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

  • 淘宝秒杀神器
    最新淘宝秒杀插件 绿色软件 免安装 植入浏览器直接运行
    2020-11-28下载
    积分:1
  • 变频调速SVPWM技术的原理、算法与应
    【实例简介】
    2021-11-11 00:35:53下载
    积分:1
  • 风速威布尔分布
    这是实现风电场风速威布尔分布拟合的程序,不仅仅能画出分布图,还能求解出威布尔的形状参数和尺寸参数,很有用
    2020-06-24下载
    积分:1
  • 新代 模拟器 m21.zip
    【实例简介】新代 模拟器 m21 很难找到的模拟器。。。。 。。。。。。。。。。。。。。。
    2021-11-22 00:33:46下载
    积分:1
  • DDS线性调频信号发生器(FPGA, VHDL)
    用VHDL编写的 正弦波DDS线调频信号发生器(FPGA)。其中,rom为1/4周期波形,波形起始、终止频率在K_con.vhd模块中的f1、f2常数。步进不仅频率控制字在判断clk上升沿下一行所加的数值。本程序通过QuartusII 9.0调试通过
    2021-05-06下载
    积分:1
  • 电网数据Gephi数据集
    电网数据Gephi数据集涵盖美洲大部分电网数据,可以直接导入运行
    2020-06-01下载
    积分:1
  • pso-rbf python实现
    一种粒子群算法优化的rbf神经网络,python实现,这是一次课程作业
    2020-11-29下载
    积分:1
  • visio的PAD流图形状
    在visio里文件下形状选项里可以选择“我的形状”将PAD流程图的形状加载进来。这个VSS文件里包含了语句、循环、2分支、3分支等几个基本的PAD图形,简单的流程图绘制是没问题的。大家也可以丰富这个形状库,添加更多的形状。
    2020-12-04下载
    积分:1
  • 自适应迭代最小二乘支持向量机回归算法
    自适应迭代最小二乘支持向量机回归算法,对写高水平的论文有非常好的帮助
    2020-11-02下载
    积分:1
  • java加入购物车源码实例(附数据库文件)
    一个 java加入购物车实例,实现了购物车的增删改,jdk1.6以上,tomcat6.0以上,eclipse、myeclipse、idea导进去就可运行,附带了数据库文件。
    2020-11-04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载