Skip to content

Commit

Permalink
Adds alt text for images of equations in mnist beginners tutorial.
Browse files Browse the repository at this point in the history
Change: 152130650
  • Loading branch information
tensorflower-gardener committed Apr 4, 2017
1 parent ac3c768 commit af21dee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tensorflow/docs_src/get_started/mnist/beginners.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,15 +208,17 @@ the \\(x\\)s, add a bias, and then apply softmax.
If we write that out as equations, we get:

<div style="width:52%; margin-left:25%; margin-bottom:10px; margin-top:20px;">
<img style="width:100%" src="../../images/softmax-regression-scalarequation.png">
<img style="width:100%" src="../../images/softmax-regression-scalarequation.png"
alt="[y1, y2, y3] = softmax(W11*x1 + W12*x2 + W13*x3 + b1, W21*x1 + W22*x2 + W23*x3 + b2, W31*x1 + W32*x2 + W33*x3 + b3)">
</div>

We can "vectorize" this procedure, turning it into a matrix multiplication
and vector addition. This is helpful for computational efficiency. (It's also
a useful way to think.)

<div style="width:50%; margin:auto; margin-bottom:10px; margin-top:20px;">
<img style="width:100%" src="../../images/softmax-regression-vectorequation.png">
<img style="width:100%" src="../../images/softmax-regression-vectorequation.png"
alt="[y1, y2, y3] = softmax([[W11, W12, W13], [W21, W22, W23], [W31, W32, W33]]*[x1, x2, x3] + [b1, b2, b3])">
</div>

More compactly, we can just write:
Expand Down

0 comments on commit af21dee

Please sign in to comment.