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

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

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

  • ICP点云匹配
    icp点云匹配,及相关点云文件。vs2013
    2020-12-06下载
    积分:1
  • matlab RS
    可用来实现任意马码长的RS编解码程序,是通信人
    2020-12-12下载
    积分:1
  • EMD端点效应处理方法
    【实例简介】两种EMD端点效应处理方法(m源程序) 两种EMD端点效应处理方法(m源程序) 两种EMD端点效应处理方法(m源程序)
    2021-11-16 00:32:05下载
    积分:1
  • 微弱信号的检测和提取
    随机实验中微弱信号的检测和提取实验,用MATLAB编程实现,还包括各种滤波器的设计以及小波算法和自相关算法,最重要的是注释很详细。
    2020-12-07下载
    积分:1
  • 译原理课设计-C语言子集译器
    本程序能实现C语言子集的编译,能实现的主要功能包括:(1)、实现编译的词法分析(2)、语法分析(3)、语义分析功能(4)、错误处理能力,并给出总的出错报告(5)、编译最终形成四元式的中间代码形式
    2020-12-02下载
    积分:1
  • DELL R720服务器系统安装详解
    DELL R720服务器系统安装图文详解,最详细的服务器安装
    2020-12-06下载
    积分:1
  • Win8漂亮备忘录源码20121102
    Win8漂亮备忘录源码功能介绍: 从Windows Phone移植过来的漂亮的备忘录,界面美观,有动画效果 适合win8开发下载学习。注意: 开发环境为Visual Studio 2012
    2020-11-29下载
    积分:1
  • unity框选demo
    untiy实现框选物体,GL实现画框,shader实现框选选择物体
    2020-12-08下载
    积分:1
  • 最小二乘法拟合圆完整测试代码
    最小二乘法拟合圆完整测试代码,里面有现成的图片,包括所有的实现代码
    2021-05-06下载
    积分:1
  • vue 项目实战
    这是一个入门vue的实战项目,可以提升自己对vue的掌握。
    2020-11-28下载
    积分:1
  • 696518资源总数
  • 106140会员总数
  • 8今日下载