Skip to content

Instantly share code, notes, and snippets.

@WillKoehrsen
Created July 2, 2018 15:05
Show Gist options
  • Save WillKoehrsen/68dd8ae9723a791c660d5bbf3b5d1734 to your computer and use it in GitHub Desktop.
Save WillKoehrsen/68dd8ae9723a791c660d5bbf3b5d1734 to your computer and use it in GitHub Desktop.
import csv
# File to save first results
out_file = 'gbm_trials.csv'
of_connection = open(out_file, 'w')
writer = csv.writer(of_connection)
# Write the headers to the file
writer.writerow(['loss', 'params', 'iteration', 'estimators', 'train_time'])
of_connection.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment