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

Undefined Function in CNN #170

Open
TYS11 opened this issue Dec 13, 2016 · 9 comments
Open

Undefined Function in CNN #170

TYS11 opened this issue Dec 13, 2016 · 9 comments

Comments

@TYS11
Copy link

TYS11 commented Dec 13, 2016

Undefined sigm in cnnff.m at line 17 and line 37.
Undefined expand function in cnnbp.m at line 26

@wajihullahbaig
Copy link

Did you add the path to the folders of DeepLearnToolBox?
YOu have to tell matlab the path to the whole tool box

@TYS11
Copy link
Author

TYS11 commented Dec 13, 2016

Thanks, solved it.
I wonder why I get so many Kernels at second Convolution layer.
I wanted to have a 8 filters(aka weights) at both of the Conv layers.
So for First conv layer I set outputmaps to 8, for second layer I set outputmaps to 8 as well,
but the filters it produced is 64 at second Conv layer, instead of 8?

@wajihullahbaig
Copy link

wajihullahbaig commented Dec 13, 2016

I am afraid I did not understand the question clearly. You get many kernels because you are using a whole batch of images and push them through the convolution layer. I don;t understand your second question but still may be you did not understand maps correctly in convolution?
A division by 255 keeps the data in the range of [ 0 , 1] and this is normal practice in computer vision.

@wajihullahbaig
Copy link

wajihullahbaig commented Dec 13, 2016

And for a better understanding on CNN filters,maps etc here is a good link
http://cs231n.github.io/convolutional-networks/

@TYS11
Copy link
Author

TYS11 commented Jan 15, 2017

by the way, your pooling layer uses max pooling or mean pooling?

@wajihullahbaig
Copy link

Max pooling

@TYS11
Copy link
Author

TYS11 commented Jan 18, 2017

thanks, much obliged.

@TYS11
Copy link
Author

TYS11 commented Jan 22, 2017

One last thing, softmax classifier in the output layer?

@wajihullahbaig
Copy link

If you are talking about the CNN, its sigm() found here https://github.com/rasmusbergpalm/DeepLearnToolbox/blob/master/util/sigm.m
which is inside the feed forward module, https://github.com/rasmusbergpalm/DeepLearnToolbox/blob/master/CNN/cnnff.m

For simple neural network, the tests show softmax output layer. Check the 'tests' folder for a better understanding.

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

2 participants