Mercurial > pylearn
changeset 606:e4a92dce13fe
added comments to amat
author | James Bergstra <bergstrj@iro.umontreal.ca> |
---|---|
date | Thu, 15 Jan 2009 22:21:35 -0500 |
parents | 20953adfdef8 |
children | 23467f473eb7 |
files | pylearn/io/amat.py |
diffstat | 1 files changed, 19 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pylearn/io/amat.py Thu Jan 15 22:21:04 2009 -0500 +++ b/pylearn/io/amat.py Thu Jan 15 22:21:35 2009 -0500 @@ -1,4 +1,22 @@ -"""load PLearn AMat files""" +"""load PLearn AMat files + + +An AMat file is an ascii format for dense matrices. + +The format is not precisely defined, so I'll describe here a single recipe for making a valid +file. + +.. code-block:: text + + #size: <rows> <cols> + #sizes: <input cols> <target cols> <weight cols> <extra cols 0> <extra cols 1> <extra cols ...> + number number number .... + number number number .... + + +Tabs and spaces are both valid delimiters. Newlines separate consecutive rows. + +""" import sys, numpy, array