#NEWLINE# def load_test_fs( ) : #NEWLINE# #INDENT# test_fs = np . genfromtxt ( open ( ( dir + '/test_v2.csv' ) , 'rb' ) , delimiter = ',' , skip_header = 1 ) #NEWLINE# col_mean = stats . nanmean ( test_fs , axis = 0 ) #NEWLINE# inds = np . where ( np . isnan ( test_fs ) ) #NEWLINE# test_fs [ inds ] = np . take ( col_mean , inds [ 1 ] ) #NEWLINE# test_fs [ np . isinf ( test_fs ) ] = 0 #NEWLINE# return test_fs