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

MLPDropoutLayer seems has no hidden layer ? #2

Open
fseasy opened this issue Jun 11, 2015 · 1 comment
Open

MLPDropoutLayer seems has no hidden layer ? #2

fseasy opened this issue Jun 11, 2015 · 1 comment

Comments

@fseasy
Copy link

fseasy commented Jun 11, 2015

Hi , recently I am reading the code and founed it seems that : At MLPDroupoutLayer , there is no hidden layer added .
First , hidden_unites defined here :

conv_net_sentence.py - 311line : hidden_units=[100,2]

and changed here :

conv_net_sentence.py - 93 line : hidden_units[0] = feature_maps*len(filter_hs)

so it steel just has 2 elements .

And at conv_net_classes.py :
96 line : self.weight_matrix_sizes = zip(layer_sizes, layer_sizes[1:])
103 : next_dropout_layer_input = _dropout_from_layer(rng, input, p=dropout_rates[0])
105 : for n_in, n_out in self.weight_matrix_sizes[:-1]:

and here self.weight_matrix_sizes[:-1] is a empty list . So there seems no hidden layer defined ?

@yoonkim
Copy link
Owner

yoonkim commented Dec 11, 2015

That's correct, we go directly from the CNN output to the softmax, without any hidden layers.

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