Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A Problem with the Deep Belief Network C++ codes #19

Open
aykutm opened this issue Feb 10, 2016 · 4 comments
Open

A Problem with the Deep Belief Network C++ codes #19

aykutm opened this issue Feb 10, 2016 · 4 comments

Comments

@aykutm
Copy link

aykutm commented Feb 10, 2016

I applied your dbn.cpp code . But for your all test data, the prediction results are equal. It is an unexpected situation (if we give a training sample as a train sample it can not find the true class, too). What is the problem? I expect your help.

@littlewei39
Copy link

you need to change the mod from Debug to Release, then the answer is right

@carterbao
Copy link

Why changing from Debug mode to Release makes it work?Could anyone explain that?

@carterbao
Copy link

carterbao commented Nov 30, 2016

I got it, in the HiddenLayer(int size, int in, int out, double **w, double *bp) construction function, after b = new double[n_out]; each element of b should be initialized to zero, otherwise they will be randomly initialized to be too large in debug mode. However in release mode, they are initialized to small values.

@auxs2015
Copy link

auxs2015 commented Feb 8, 2017

@carterbao it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants