Package pylearn :: Package io :: Module amat
[hide private]

Module amat

source code

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

.. 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.

Classes [hide private]
DataSource to access a plearn amat file as a periodic unrandomized stream.

Imports: sys, numpy, array