Skip to content

Commit 32417e5

Browse files
committed
Merge pull request lisa-lab#36 from nouiz/comment
fix a comment and give more info about it.
2 parents 1d288cf + e7f0397 commit 32417e5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

doc/logreg.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,11 @@ The code to do this in Theano is the following:
6868
b = theano.shared(numpy.zeros((10,)), name='b')
6969
W = theano.shared(numpy.zeros((784, 10)), name='W')
7070

71-
# symbolic expression for computing the vector of
72-
# class-membership probabilities
71+
# symbolic expression for computing the matrix of class-membership probabilities
72+
# Where:
73+
# W is a matrix where column-k represent the separation hyper plain for class-k
74+
# x is a matrix where row-j represents input training sample-j
75+
# b is a vector where element-k represent the free parameter of hyper plain-k
7376
p_y_given_x = T.nnet.softmax(T.dot(x, W) + b)
7477

7578
# compiled Theano function that returns the vector of class-membership

0 commit comments

Comments
 (0)