GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — add axis=1 to argmax call in logreg docs to fit new Theano behavior · TongZZZ/DeepLearningTutorials@940cb40

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc
    • logreg.txt
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/logreg.txt‎

Copy file name to clipboardExpand all lines: doc/logreg.txt
+1-1Lines 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 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.