Skip to content

Conversation

@fbreuer
Copy link
Contributor

@fbreuer fbreuer commented Jan 11, 2013

There is one little error in the text, which led to a very subtle bug, that I just a significant amount of time hunting done. In the first code listing on that page, the second to last code line needs to read:

y_pred = T.argmax(p_y_given_x, axis=1)

instead of

y_pred = T.argmax(p_y_given_x)

As far as I understand it, these lines used to be equivalent in a previous version of Theano, but now they are different significantly different. (At first glance, the code appears to run just fine, though.)

@lamblin
Copy link
Member

lamblin commented Jan 11, 2013

Thanks for the fix! Apparently, it had been applied in the code itself (code/logistic_sgd.py), but not in the documentation.
Travis failure is unrelated.

lamblin added a commit that referenced this pull request Jan 11, 2013
Fix argmax call in logreg tutorial docs to include axis=1.
@lamblin lamblin merged commit 400c637 into lisa-lab:master Jan 11, 2013
taneishi pushed a commit to taneishi/DBN that referenced this pull request Nov 28, 2019
Fix argmax call in logreg tutorial docs to include axis=1.
taneishi pushed a commit to taneishi/DBN that referenced this pull request Feb 13, 2020
Fix argmax call in logreg tutorial docs to include axis=1.

Former-commit-id: 51f3419
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

Successfully merging this pull request may close these issues.

2 participants