Skip to content

Commit 43e43ca

Browse files
committed
pep8
1 parent 43c5b67 commit 43e43ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pylearn2/expr/nnet.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,11 @@ def arg_of_sigmoid(Y_hat):
149149
raise TypeError("Expected Y_hat to be the output of a sigmoid, "
150150
"but it appears to be the output of " + str(op) +
151151
" of type " + str(type(op)))
152-
z ,= owner.inputs
152+
z, = owner.inputs
153153
assert z.ndim == 2
154154
return z
155155

156+
156157
def kl(Y, Y_hat, batch_axis):
157158
"""
158159
Warning: This function expects a sigmoid nonlinearity in the

pylearn2/expr/tests/test_nnet.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,3 @@ def test_arg_of_sigmoid_bad():
158158
except TypeError:
159159
return
160160
assert False # Should have failed
161-

0 commit comments

Comments
 (0)