Package ML :: Module files
[hide private]
[frames] | no frames]

Module files

source code

Generic file manipulation stuff



Classes [hide private]
  ReFile
convenience class for dealing with files with comments blank (all whitespace) lines, and lines beginning with comment characters are skipped.
Functions [hide private]
 
ReadDataFile(fileName, comment=r'#', depVarCol=0, dataType=Float)
read in the data file and return a tuple of two Numeric arrays: (independant variables, dependant variables).
source code
Function Details [hide private]

ReadDataFile(fileName, comment=r'#', depVarCol=0, dataType=Float)

source code 
read in the data file and return a tuple of two Numeric arrays:
(independant variables, dependant variables).

**ARGUMENTS:**

- fileName: the fileName

- comment: the comment character for the file

- depVarcol: the column number containing the dependant variable

- dataType: the Numeric short-hand for the data type

RETURNS:

 a tuple of two Numeric arrays:

  (independant variables, dependant variables).