Skip to content

Instantly share code, notes, and snippets.

@Damian89
Created October 25, 2017 13:20
Show Gist options
  • Select an option

  • Save Damian89/76568c7ef14b1822de2b16a8fc8acb88 to your computer and use it in GitHub Desktop.

Select an option

Save Damian89/76568c7ef14b1822de2b16a8fc8acb88 to your computer and use it in GitHub Desktop.
# Since we found our super good model, its a good idea to save it for future use (every week starts a new challenge!).
if save_good_models:
import pickle
print("Saved model.")
with open(modelfolder + file_base_name + ".model", 'wb') as model_file:
pickle.dump(model, model_file)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment