combine_fold_results.py
def make_uniform_array(lists):
    '''Take a list of possibly variable sized lists and return a numpy 2D array
        where the smaller lists are padded to the size of the longest list using 
        their last value'''
    maxlen = max([len(l) for l in lists])
    return np.array([list(l) + [l[-1]]*(maxlen-len(l)) for l in lists])
Take a list of possibly variable sized lists and return a numpy 2D array
        where the smaller lists are padded to the size of the longest list using 
        their last value
Take a list of possibly variable sized lists and return a numpy 2D array
where the smaller lists are padded to the size of the longest list using
their last value
Take a list of possibly variable sized lists and return a numpy 2D array where the smaller lists are padded to the size of the longest list using their last value
def make_uniform_array(lists):
    maxlen = max([len(l) for l in lists])
    return np.array([list(l) + [l[-1]]*(maxlen-len(l)) for l in lists])
def make_uniform_array ( lists ) : maxlen = max ( [ len ( l ) for l in lists ] ) return np . array ( [ list ( l ) + [ l [ - 1 ] ] * ( maxlen - len ( l ) ) for l in lists ] )
Take a list of possibly variable sized lists and return a numpy 2D array
where the smaller lists are padded to the size of the longest list using
their last value
Take a list of possibly variable sized lists and return a numpy 2D array where the smaller lists are padded to the size of the longest list using their last value
'''Take a list of possibly variable sized lists and return a numpy 2D array
        where the smaller lists are padded to the size of the longest list using 
        their last value'''
lists