Skip to content

Commit 9870dec

Browse files
committed
Merge pull request #1360 from yingzha/dev
added docstring to get_weights_format
2 parents 9132584 + 1b66a79 commit 9870dec

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

pylearn2/models/mlp.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,16 @@ def set_biases(self, biases):
296296

297297
def get_weights_format(self):
298298
"""
299-
.. todo::
299+
Returns a description of how to interpret the weights of the layer.
300+
301+
Returns
302+
-------
303+
format: tuple
304+
Either ('v', 'h') or ('h', 'v').
305+
('v', 'h') means a weight matrix of shape
306+
(num visible units, num hidden units),
307+
while ('h', 'v') means the transpose of it.
300308
301-
WRITEME
302309
"""
303310
raise NotImplementedError
304311

0 commit comments

Comments
 (0)