(data, meta, output_filename)
Write to a tsv file.
Write to a tsv file.
Write to a tsv file .
def write_tsv(data, meta, output_filename):
    """Write to a tsv file."""
    with open(output_filename, 'w') as f:

        for row in data:
            for idx, col in enumerate(row):
                if idx in meta['continuous_columns']:
                    print(col, end=' ', file=f)
                else:
                    assert idx in meta['discrete_columns']
                    print(meta['column_info'][idx][int(col)], end=' ', file=f)

            print(file=f)
def write_tsv ( data , meta , output_filename ) : with open ( output_filename , 'w' ) as f : for row in data : for idx , col in enumerate ( row ) : if idx in meta [ 'continuous_columns' ] : print ( col , end = ' ' , file = f ) else : assert idx in meta [ 'discrete_columns' ] print ( meta [ 'column_info' ] [ idx ] [ int ( col ) ] , end = ' ' , file = f ) print ( file = f )