没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Deep Learning
MATLAB Code for Sparse Autoencoder
Andrew Ng, Jiquan Ngiam,
Chuan Yu Foo, Yifan Mai, Caroline Suen
Computer Science Department, Stanford University
Room 156, Gates Building, Stanford, CA 94305-9010
Email: ang@cs.stanford.edu Tel: (650)725-2593
November 26, 2013
train.m I
%% CS294A/CS294W Programming Assignment Starter Code
% Instructions
% ------------
%
% This file contains code that helps you get started on
the
% programming assignment. You will need to complete the
code in sampleIMAGES.m,
% sparseAutoencoderCost.m and computeNumericalGradient.m.
% For the purpose of completing the assignment, you do
not need to
% change the code in this file.
Lecturer: YiBin YU yuyibintony@163.com, WuYi University Deep Learning, MATLAB Code for Sparse Autoencoder 3/57
train.m II
%
%%=================================================================
%% STEP 0: Here we provide the relevant parameters values
that will
% allow your sparse autoencoder to get good filters; you
do not need to
% change the parameters below.
visibleSize = 8*8; % number of input units
hiddenSize = 25; % number of hidden units
sparsityParam = 0.01; % desired average activation of
the hidden units.
% (This was denoted by the Greek alphabet
rho, which looks like a lower-case "p",
Lecturer: YiBin YU yuyibintony@163.com, WuYi University Deep Learning, MATLAB Code for Sparse Autoencoder 4/57
train.m III
% in the lecture notes).
lambda = 0.0001; % weight decay parameter
beta = 3; % weight of sparsity penalty term
%%===============================================================
%% STEP 1: Implement sampleIMAGES
%
% After implementing sampleIMAGES, the display_network
command should
% display a random sample of 200 patches from the dataset
patches = sampleIMAGES;
display_network(patches(:,randi(size(patches,2),204,1)),8);%randi(size(patches,2),204,1)
%•)˜‡204‘•þ§z˜‘Š•0~10000
Lecturer: YiBin YU yuyibintony@163.com, WuYi University Deep Learning, MATLAB Code for Sparse Autoencoder 5/57
剩余56页未读,继续阅读
AustinXavery
- 粉丝: 10
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
前往页