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

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

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

  • 《ANSYS CFD 入门指南- 计算流体力学基础及应用》随书示例源码
    《ANSYS CFD 入门指南- 计算流体力学基础及应用》
    2020-11-29下载
    积分:1
  • OpenGL三茶壶三光源(光源绕着茶壶旋转)有好几个坐标系.rar
    【实例简介】1. 绘制带有光照效果的场景; 2. 场景包含 3 个茶壶,通过键盘 123 可以分别选中三个茶壶,然后用鼠标对每个茶壶 进行分别的旋转; 3. 使用点光源,点光源为白色,以白色的球体表示; 4. 使用 3 个不同的点光源 i. 光源 1 的坐标设置在世界坐标系中,并围绕着三个茶壶的中心进行圆周运动; ii. 光源 2 的坐标 设置在观察坐标系,不发生变化; iii. 光源 3 的坐标设置在茶壶 1 的物体坐标系中,当茶壶 1 被选中进行旋转时,光 源 3 要跟随茶壶 1 做相同的旋转;
    2021-11-29 00:32:30下载
    积分:1
  • arm平台framebuffer 显示png图片
    arm平台下,交叉编译,实现png图片的解析通过framebuffer的操作显示png图片到lcd上
    2020-12-10下载
    积分:1
  • MATLAB在LQG控制中的应用
    介绍MATLAB在LQG控制的二级倒立摆平衡系统中的应用,旨在说明MATLAB作为一种高效率的面向科学和工程计算的高级语言,已经成为控制系统计算机辅助设计(CASCSD)技术的方便可行的工具。
    2020-12-10下载
    积分:1
  • 基于Python-opencv的车牌识别
    这个是自己用Python2.7写的基于opencv的车牌识别,目前识别率还是不怎么高,车牌定位采用的是形态学变换,分割是自己写的一个算法,识别部分采用的是kNN算法,有详细的注释!
    2020-11-28下载
    积分:1
  • PPT模板 创意
    PPT模板 创意 工作总结 汇报 PPT模板 创意 工作总结 汇报 PPT模板 创意 工作总结 汇报 PPT模板 创意 工作总结 汇报 PPT模板 创意 工作总结 汇报 PPT模板 创意 工作总结 汇报
    2020-12-06下载
    积分:1
  • CentOS 6.x和7.x上安装 Oracle 11g R2所需rpm依赖包
    包含所有centos6.x和centos7.x安装Oracle11gR2的RMP文件。我为了这东西也是绞尽脑汁,本想免费提供出来的。资源分数最低要填写1,就没有办法了。binutils-2.20.51.0.2-5.36.el6.x86_64.rpmbinutils-devel-2.20.51.0.2-5.36.el6.x86_64.rpmcloog-ppl-0.15.7-1.2.el6.x86_64.rpmcompat-libstdc++-33-3.2.3-69.el6.x86_64.rpmcpp-4.4.7-4.el6.x86_64.rpmelfutils-libelf-0.15
    2021-05-06下载
    积分:1
  • 2套经典毕业论文答辩ppt模板
    2套经典毕业论文答辩ppt模板
    2021-05-07下载
    积分:1
  • 语音识别MFCC特征提取matlab代码
    语音识别MFCC特征提取matlab代码。「梅尔倒频谱系数」(Mel-scale Frequency Cepstral Coefficients,简称MFCC),是最常用到的语音特征,此参数考虑到人耳对不同频率的感受程度,因此特别适合用在语音辨识。
    2020-12-06下载
    积分:1
  • 【书 光盘代码】(英文原版)全球定位系统—信号、测量与性能.zip
    本书全面介绍了GPS,包括系统、信号、接收机、测量,以及用以估算位置、速度和时间的算法,本书可作为工科专业高年级或研究生的教科书,也可作为应用工程师的自学教程。 全书分为四部分:第一部分介绍全球卫星导航系统的基础框架,包括坐标系、时基参考和卫星轨道,并概述GPS、GLONASS和Galileo系统;第二部分描述GPS的重要技术——位置、速度和时间估算;第三部分讨论富于创意的GPS信号结构;第四部分阐述从信号中提取有用测量量的处理技术,并探讨射频干扰和信号阻隔所带来的挑战。 本书所附光盘包含有在世界各地采集的GPS数据,学生可用此数据进行上机实验。章后提供配套习题,要求学生通过MATLAB编程来分析GPS数据。
    2019-09-03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载