Permalink
Browse files

Fixing typo.

  • Loading branch information...
1 parent 05d0e3c commit e378133a85eeea818815fa986f1938aafe6460aa @echen committed Sep 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 rbm.py
View
2 rbm.py
@@ -8,7 +8,7 @@ def __init__(self, num_visible, num_hidden, learning_rate = 0.1):
self.learning_rate = learning_rate
# Initialize a weight matrix, of dimensions (num_visible x num_hidden), using
- # a Gaussian distribution with mean 0.1.
+ # a Gaussian distribution with mean 0 and standard deviation 0.1.
self.weights = 0.1 * np.random.randn(self.num_visible, self.num_hidden)
# Insert weights for the bias units into the first row and first column.
self.weights = np.insert(self.weights, 0, 0, axis = 0)

0 comments on commit e378133

Please sign in to comment.