We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43c5b67 commit 43e43caCopy full SHA for 43e43ca
pylearn2/expr/nnet.py
@@ -149,10 +149,11 @@ def arg_of_sigmoid(Y_hat):
149
raise TypeError("Expected Y_hat to be the output of a sigmoid, "
150
"but it appears to be the output of " + str(op) +
151
" of type " + str(type(op)))
152
- z ,= owner.inputs
+ z, = owner.inputs
153
assert z.ndim == 2
154
return z
155
156
+
157
def kl(Y, Y_hat, batch_axis):
158
"""
159
Warning: This function expects a sigmoid nonlinearity in the
pylearn2/expr/tests/test_nnet.py
@@ -158,4 +158,3 @@ def test_arg_of_sigmoid_bad():
except TypeError:
return
160
assert False # Should have failed
161
-
0 commit comments