Exercise:Vectorization

习题的链接:Exercise:Vectorization

注意点:

MNIST图片的像素点已经经过归一化。

如果再使用Exercise:Sparse Autoencoder中的sampleIMAGES.m进行归一化,

将使得训练得到的可视化权值如下图:

更改train.m的参数设置

visibleSize = *;   % number of input units
hiddenSize = ; % number of hidden units
sparsityParam = 0.1; % desired average activation of the hidden units.
% (This was denoted by the Greek alphabet rho, which looks like a lower-case "p",
% in the lecture notes).
lambda = 3e-; % weight decay parameter
beta = ; % weight of sparsity penalty term

更改sampleIMAGES.m

function patches = sampleIMAGES()
% sampleIMAGES
% Returns patches for training load images; % load images from disk patchsize = ; % we'll use 28x28 patches
numpatches = ; % Initialize patches with zeros. Your code will fill in this matrix--one
% column per patch, columns.
patches = zeros(patchsize*patchsize, numpatches); %% ---------- YOUR CODE HERE --------------------------------------
% Instructions: Fill in the variable called "patches" using data
% from images. patches = images(:, :);

训练得到的W1可视化:

最新文章

  1. WPF与WinForm开发有什么区别?
  2. lustre文件系统部署流程
  3. .NET生成缩略图并下载
  4. IOC依赖注入简单实例
  5. linux内核的熵池
  6. eval绑定decimal数据后,如何去掉后面没有意义的0?
  7. 配置apache+trac环境
  8. (转)使用DataTime这个类来获取当前的时间
  9. jquery中table里面的tr里的input添加一行,并且第一列autoincrement
  10. C奇淫技巧,——宏神奇
  11. jQuery中,$.extend,$obj.extend和$.fn.extend三者的区别
  12. 利用rabbit_mq队列消息实现对一组主机进行命令下发
  13. CDN,你了解多少?
  14. sql查询优化整理
  15. 分享:SringBuffer与String的区别
  16. tsst
  17. fatal error LNK1104: 无法打开文件“lua51.lib”
  18. Ansa 自动加载用户脚本设置
  19. Spring Boot读取配置的几种方式
  20. mysql 拒绝登录解决

热门文章

  1. 判断checkbox选中的个数
  2. offsetof与container_of宏[总结]
  3. Concurrent HTTP connections in Node.js
  4. Java:Linux上java -jar xxx.jar&java -cp 区别
  5. maven 添加jar到中央/远程仓库
  6. C#.NET常见问题(FAQ)-如何让listView如何选中一行
  7. window系统使用tftp下载和上传文件
  8. iOS 两个应用之间的切换
  9. javascript中IE浏览器不支持NEW DATE()带参数的解决方法
  10. ZH奶酪:Python中zip函数的使用方法