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

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

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

  • F117feko模型文件
    该模型是基于feko 5.5 的F117的RCS计算,详细参数需要设置,建模很好,希望对大家有用。
    2020-11-27下载
    积分:1
  • 电力系统分析学习指导与习
    本系列丛书之一,即《电力系统分析学习指导与习题集》,全书主要包括《电力系统稳态分析》、《电力系统暂态分析》和《电力系统分析习题集》三部分内容,提出了《电力系统分析》课程每章的基本内容要求和重点内容,并针对典型例题进行了详细的分析和解答。本辅导教材和配套教材为 《电力系统稳态分析》(东南大学 陈珩著)、《电力系统暂态分析》(西交大 李光琦著)。 习题集内容包括电力系统稳态分析和暂态分析。即:电力系统正常运行的分析和计算;电力系统运行状况的优化和调整;电力系统的故障分析和计算;电力系统的稳定性。所选题目是本着概念性强具有典型性的原则进行精选,着重在于使学生消化基本概念加深理论的理解和掌握分析计算
    2021-05-06下载
    积分:1
  • 计算分形盒维数
    从国外下的代码,可以计算1D,2D,3D的分形盒维数,很好用
    2020-11-28下载
    积分:1
  • MFC局域网聊天室(C++)
    自己编的,用最简单的SELECT模型和多线程技术实现的,还有许多不足之处,但是能实现基本的私聊,群聊,服务器广播功能,我会在以后加以改进。
    2020-11-30下载
    积分:1
  • 110kV变电站全套竣工图
    110kV变电站全套竣工图
    2020-12-07下载
    积分:1
  • 水晶球软件_初级教
    加载在微软公司(Microsoft®)的电子表格软件(Excel®)上的水晶球软件2000专业版(Crystal Ball®2000 Professional Edition)是一个易于使用的软件。它可以帮助你分析与你的电子表格模型相关的风险和不确定性。这个软件包括蒙特卡洛模拟(水晶球)、时间序列预测(水晶球预言家)、最优选择(优化查询)和用来构造定制界面和程序的开发工具箱。由于电子表格缺乏设计和分析可选方案的能力,所以仅用电子表格来估算一个事件发生的概率是不合适的。而加载了水晶球软件的电子表格模型就能具备这样的功能,从而帮助用户洞察模型运行和结果产生的机制。本初级教程通过一个媒体产业的实例来
    2020-12-08下载
    积分:1
  • 粒子群优化与差分进化混合算法的多目标优化.caj
    粒子群优化与差分进化混合算法的多目标优化.caj
    2021-05-06下载
    积分:1
  • 平坦衰落/频率选择性衰落信道原理,建模、仿真
    平坦衰落/频率选择性衰落信道原理,建模、仿真。文档共60多页,讲解很详细
    2020-12-06下载
    积分:1
  • 解析相对定向及模型坐标的计算
    确定两张像片的相对定向元素 建立模型,计算模型点坐标
    2020-11-27下载
    积分:1
  • 软件测试技术课设计(论文+源码).zip
    【实例简介】软件测试技术课程设计,用loadrunner软件实现对一个web程序进行测试,其中要自己动手连接一个数据库,这只是一个小例子,有些截图是测试过程中自动生成报告中的。
    2021-12-05 00:32:00下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载