Skip to content

Commit b309c42

Browse files
committed
comment
1 parent 1319d04 commit b309c42

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

network3.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ def size(data):
310310
return data[0].get_value(borrow=True).shape[0]
311311

312312
def dropout_layer(layer, p_dropout):
313+
"drops some of the neurons randomly in this layer as regularization."
313314
srng = shared_randomstreams.RandomStreams(
314315
np.random.RandomState(0).randint(999999))
315316
mask = srng.binomial(n=1, p=1-p_dropout, size=layer.shape)

0 commit comments

Comments
 (0)