"Deeplearning" exercise:vectorization

Source: Internet
Author: User

Exercise:vectorization

Links to Exercises:exercise:vectorization

Note the point:

The pixel points of the mnist picture have been normalized.

If you re-use the SAMPLEIMAGES.M in Exercise:sparse Autoencoder for normalization,

The visual weights that will result in the training are as follows:

My implementation:

Changing the parameter setting of TRAIN.M and selecting the training sample

Percent STEP0: Here we provide the relevant parameters values that would% allow your sparse autoencoder toGetGood filters; You DoNot need to%Change the parameters below.visiblesize= -* -; %Number of input units hiddensize=196; %Number of hidden units Sparsityparam=0.1; %desired average activation of the hidden units. % (This is denoted by the Greek alphabet Rho, which looks like a lower- Case "P",             %inchThe Lecture notes). Lambda= 3e-3; %weight Decay parameter beta=3; %weight of sparsity penalty term%%======================================================================%% STEP1: Implement sampleimages%%After implementing Sampleimages, the Display_network command should% display a random sample of $Patches fromThe DataSet%MNIST images have already been normalizedimages= Loadmnistimages ('Train-images.idx3-ubyte');p atches= Images (:,1:10000); %display_network (Patches (:, Randi (Size (patches,2), $,1)),8);%obtain random parameters Thetatheta= Initializeparameters (hiddensize, visiblesize);

W1 visualization of the training obtained:

"Deeplearning" exercise:vectorization

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.