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

classobj AMat

source code

DataSource to access a plearn amat file as a periodic unrandomized stream.

Attributes:

input -- all columns of input target -- all columns of target weight -- all columns of weight extra -- all columns of extra

all -- the entire data contents of the amat file n_examples -- the number of training examples in the file

AMat stands for Ascii Matri[x,ces]

Instance Methods [hide private]
 
__init__(self, path, head=None, update_interval=0, ofile=sys.stdout)
Load the amat at <path> into memory.
source code
Class Variables [hide private]
  marker_size = '#size:'
  marker_sizes = '#sizes:'
  marker_col_names = '#:'
Method Details [hide private]

__init__(self, path, head=None, update_interval=0, ofile=sys.stdout)
(Constructor)

source code 

Load the amat at <path> into memory.

path - str: location of amat file head - int: stop reading after this many data rows update_interval - int: print '.' to ofile every <this many> lines ofile - file: print status, msgs, etc. to this file