Skip to content

Instantly share code, notes, and snippets.

@WillKoehrsen
Last active July 3, 2018 14:18
Show Gist options
  • Save WillKoehrsen/8fbe52177b6775fe5fffeba41f76583c to your computer and use it in GitHub Desktop.
Save WillKoehrsen/8fbe52177b6775fe5fffeba41f76583c to your computer and use it in GitHub Desktop.
# Write to the csv file ('a' means append)
of_connection = open(out_file, 'a')
writer = csv.writer(of_connection)
writer.writerow([loss, params, iteration, n_estimators, run_time])
of_connection.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment