

def log_results(filename, data_collect, loss_log):
    with open((('results/sonar-frames/learn_data-' + filename) + '.csv'), 'w') as data_dump:
        wr = csv.writer(data_dump)
        wr.writerows(data_collect)
    with open((('results/sonar-frames/loss_data-' + filename) + '.csv'), 'w') as lf:
        wr = csv.writer(lf)
        for loss_item in lf:
            wr.writerow(loss_item)

dataset/ETHPy150Open harvitronix/reinforcement-learning-car/learning.py log_results/VarMisuse@83/130 `loss_log`->`lf`