【DeepLearning】Exercise:Vectorization
2024-10-10 21:14:41
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可视化:
最新文章
- WPF与WinForm开发有什么区别?
- lustre文件系统部署流程
- .NET生成缩略图并下载
- IOC依赖注入简单实例
- linux内核的熵池
- eval绑定decimal数据后,如何去掉后面没有意义的0?
- 配置apache+trac环境
- (转)使用DataTime这个类来获取当前的时间
- jquery中table里面的tr里的input添加一行,并且第一列autoincrement
- C奇淫技巧,——宏神奇
- jQuery中,$.extend,$obj.extend和$.fn.extend三者的区别
- 利用rabbit_mq队列消息实现对一组主机进行命令下发
- CDN,你了解多少?
- sql查询优化整理
- 分享:SringBuffer与String的区别
- tsst
- fatal error LNK1104: 无法打开文件“lua51.lib”
- Ansa 自动加载用户脚本设置
- Spring Boot读取配置的几种方式
- mysql 拒绝登录解决
热门文章
- 判断checkbox选中的个数
- offsetof与container_of宏[总结]
- Concurrent HTTP connections in Node.js
- Java:Linux上java -jar xxx.jar&;java -cp 区别
- maven 添加jar到中央/远程仓库
- C#.NET常见问题(FAQ)-如何让listView如何选中一行
- window系统使用tftp下载和上传文件
- iOS 两个应用之间的切换
- javascript中IE浏览器不支持NEW DATE()带参数的解决方法
- ZH奶酪:Python中zip函数的使用方法