GithubHelp home page GithubHelp logo

amaas / stanford_dl_ex Goto Github PK

View Code? Open in Web Editor NEW
2.6K 2.6K 1.6K 354 KB

Programming exercises for the Stanford Unsupervised Feature Learning and Deep Learning Tutorial

Home Page: http://ufldl.stanford.edu/tutorial

License: MIT License

stanford_dl_ex's People

Contributors

amaas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stanford_dl_ex's Issues

Little issue of grad_check.m

Line 22 of grad_check.m
fprintf('% 5d % 6d % 15g % 15f % 15f % 15f\n', ... i,j,error,g(j),g_est,f);
should be
fprintf('% 5d % 6d % 15g % 15f % 15f % 15f\n', ... i,j,error,g_est,g(j),f);

Convolution exercise : dimension of the bias

Hi,

I think the initialisation of the bias in cnnExercise.m should b:
b = rand(numFilters, 1);

instead of

b = rand(numFilters);

because in the cnnConvolve exercise, the bias should be of shape (numFilters,1)

Typo on Softmax Regression Tutorial page?

Hi! Thank you for making and maintaining this tutorial! I'm reading through your Softmax Regression Tutorial, and I have a question about the following excerpt of the section entitled Properties of softmax regression parameterization:

Indeed, rather than optimizing over the K⋅n parameters (θ(1),θ(2),…,θ(K)) (where θ(k)∈ℜ^n), one can instead set θ(K)=0⃗ and optimize only with respect to the K⋅n remaining parameters.

Should the second part of this sentence instead read "optimize only with respect to the (K - 1)⋅n remaining parameters"?

Thank you!

Column header or other information on the housing data

Hello,

Thank you for this great tutorial and all the work you have put into. This is a question not a issue, but I do not know how to just ask a question.

I can I find out what the columns in the ex1/house.data are (room number, square footage, etc). Is there a version of the file somewhere with headers or could you point me to where you originally got the data?

Thank you.

'lbfgsAddC' undefined

when running octave ex1a_linreg.m get the following error

error: 'lbfgsAddC' undefined near line 21 column 3
error: called from:
error:   /home/~~~~/stanford_dl_ex/common/minFunc_2012/minFunc/lbfgsAdd.m at line 21, column 3
error:   /home/~~~~/stanford_dl_ex/common/minFunc_2012/minFunc/minFunc.m at line 571, column 50
error:   /home/~~~~/stanford_dl_ex/ex1/ex1a_linreg.m at line 47, column 7

solve it with modifying ex1a_linreg.m line 46 to

options = struct('MaxIter', 200,'useMex',0);

small error in running multi-layer neural network

During running the "multilayer_supervised" in matlab, I got an error as below:

Reference to non-existent field 'W'.
Error in stack2params (line 31)
assert(mod(size(stack{d+1}.W, 2), size(stack{d}.W, 1)) == 0, ...
Error in supervised_dnn_cost (line 85)
[grad] = stack2params(gradStack);
Error in minFunc (line 314)
[f,g] = funObj(x,varargin{:});
Error in run_train (line 45)
[opt_params,opt_value,exitflag,output] = minFunc(@supervised_dnn_cost,...

It seems that the error came from the ''stack2params.m''. But I do not find out where the error is in the code. I used the ''stack2params.m'' directly and do not make any modification. Is there any modification be needed? Could anyone help me with this out? Thank you so much.

Tutorial page "Softmax Regression"

Last sentence of section "Properties of softmax regression parameterization"

"Indeed, rather than optimizing over the K⋅n parameters...optimize only with respect to the K⋅n remaining parameters."

The second "K⋅n" should be "(K-1)⋅n"

ther is no data in the common folder!

images = loadMNISTImages('../common/train-images-idx3-ubyte');

when I run the cnnExercise.m, gives the following error:
error usage loadMNISTImages (line 6)
Could not open ../common/train-images-idx3-ubyte
error cnnExercise (line 26)
images =
loadMNISTImages('../common/train-images-idx3-ubyte');

Tutorial Page "Multi-Layer Neural Network"

I think there is a problem in the formulation to compute the derivative of W and b in this tutorial. Isn't the W of layer l comes from error in layer l and activation in layer l-1? But the formulation suggests W in layer l comes from error in layer l+1 and activation in layer l.
2015-05-25 8 46 10
I think the right one should look like this
2015-05-25 8 29 50
The same goes to b. Or maybe I just misunderstood this, if so, please point out, thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.