Skip to content

Commit cef1016

Browse files
committed
Fixed :start-after: options to respect lack of spaces around parameter ='s.
1 parent 750673c commit cef1016

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/logreg.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ The last step involves defining a (symbolic) cost variable to minimize, using
158158
the instance method ``classifier.negative_log_likelihood``.
159159

160160
.. literalinclude:: ../code/logistic_sgd.py
161-
:start-after: classifier = LogisticRegression(input = x, n_in = 28 * 28, n_out = 10)
161+
:start-after: classifier = LogisticRegression(input=x, n_in=28 * 28, n_out=10)
162162
:end-before: # compiling a Theano function that computes the mistakes
163163

164164
Note how x is an implicit symbolic input to the symbolic definition of cost,
@@ -191,7 +191,7 @@ computation graph. Performing one-step of gradient descent can then be done as
191191
follows:
192192

193193
.. literalinclude:: ../code/logistic_sgd.py
194-
:start-after: g_b = T.grad(cost = cost, wrt = classifier.b)
194+
:start-after: g_b = T.grad(cost=cost, wrt=classifier.b)
195195
:end-before: # TRAIN MODEL
196196

197197
The ``updates`` list contains, for each parameter, the

0 commit comments

Comments
 (0)