Skip to content

Commit 940cb40

Browse files
committed
add axis=1 to argmax call in logreg docs to fit new Theano behavior
1 parent 90a1bed commit 940cb40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/logreg.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ The code to do this in Theano is the following:
8383

8484
# symbolic description of how to compute prediction as class whose probability
8585
# is maximal
86-
y_pred = T.argmax(p_y_given_x)
86+
y_pred = T.argmax(p_y_given_x, axis=1)
8787

8888
# compiled theano function that returns this value
8989
classify = theano.function(inputs=[x], outputs=y_pred)

0 commit comments

Comments
 (0)