combine_fold_results.py
def read_results_file(file):
    '''Read columns of float data from a file, ignoring # comments'''
    rows = []
    with open(file, 'r') as f:
        for line in f:
            line = line.split('#', 1)[0].strip()
            if line:
                rows.append(list(map(float, line.split(' '))))
    return list(zip(*rows))
Read columns of float data from a file, ignoring # comments
Read columns of float data from a file, ignoring # comments
Read columns of float data from a file ignoring # comments
def read_results_file(file):
    rows = []
    with open(file, 'r') as f:
        for line in f:
            line = line.split('#', 1)[0].strip()
            if line:
                rows.append(list(map(float, line.split(' '))))
    return list(zip(*rows))
def read_results_file ( file ) : rows = [ ] with open ( file , 'r' ) as f : for line in f : line = line . split ( '#' , 1 ) [ 0 ] . strip ( ) if line : rows . append ( list ( map ( float , line . split ( ' ' ) ) ) ) return list ( zip ( * rows ) )
Read columns of float data from a file, ignoring # comments
Read columns of float data from a file ignoring # comments
'''Read columns of float data from a file, ignoring # comments'''
file