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

Module pmat

source code

Classes [hide private]
VMatIt
ColumnIt
VMat
PMat
Functions [hide private]
 
array_columns(a, cols) source code
 
load_pmat_as_array(fname) source code
 
load_pmat_as_array_dataset(fname) source code
 
load_amat_as_array_dataset(fname) source code
 
save_array_dataset_as_pmat(fname, ds) source code
 
save_array_as_pmat(fname, ar, fieldnames=[]) source code
 
safefloat(str)
Convert the given string to its float value.
source code
 
readAMat(amatname)
Read a PLearn .amat file and return it as a numarray Array.
source code

Imports: numpy, sys, os, fpconst


Function Details [hide private]

safefloat(str)

source code 

Convert the given string to its float value. It is 'safe' in the sense that missing values ('nan') will be properly converted to the corresponding float value under all platforms, contrarily to 'float(str)'.

readAMat(amatname)

source code 

Read a PLearn .amat file and return it as a numarray Array.

Return a tuple, with as the first argument the array itself, and as the second argument the fieldnames (list of strings).