Skip to content

Commit

Permalink
fix pickle file naming
Browse files Browse the repository at this point in the history
  • Loading branch information
ndharasz committed Oct 16, 2024
1 parent a6c83a3 commit ff3a16f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions example_model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,13 @@
"# Pickle predict function\n",
"import cloudpickle\n",
"p = cloudpickle.dumps(predict)\n",
"with open(\"predict_barebones.pkl\", \"wb\") as f:\n",
"with open(\"example_model.pkl\", \"wb\") as f:\n",
" f.write(p)\n",
"\n",
"# Download file if running in Google Colab\n",
"try:\n",
" from google.colab import files\n",
" files.download('predict_barebones.pkl')\n",
" files.download('example_model.pkl')\n",
"except:\n",
" pass"
]
Expand Down
4 changes: 2 additions & 2 deletions feature_neutralization.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4166,7 +4166,7 @@
"# Use the cloudpickle library to serialize your function and its dependencies\n",
"import cloudpickle\n",
"p = cloudpickle.dumps(predict_neutral)\n",
"with open(\"predict_neutral.pkl\", \"wb\") as f:\n",
"with open(\"feature_neutralization.pkl\", \"wb\") as f:\n",
" f.write(p)"
]
},
Expand Down Expand Up @@ -4207,7 +4207,7 @@
"# Download file if running in Google Colab\n",
"try:\n",
" from google.colab import files\n",
" files.download('predict_neutral.pkl')\n",
" files.download('feature_neutralization.pkl')\n",
"except:\n",
" pass"
]
Expand Down
4 changes: 2 additions & 2 deletions hello_numerai.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3237,7 +3237,7 @@
"# Use the cloudpickle library to serialize your function\n",
"import cloudpickle\n",
"p = cloudpickle.dumps(predict)\n",
"with open(\"predict.pkl\", \"wb\") as f:\n",
"with open(\"hello_numerai.pkl\", \"wb\") as f:\n",
" f.write(p)"
]
},
Expand Down Expand Up @@ -3278,7 +3278,7 @@
"# Download file if running in Google Colab\n",
"try:\n",
" from google.colab import files\n",
" files.download('predict.pkl')\n",
" files.download('hello_numerai.pkl')\n",
"except:\n",
" pass"
]
Expand Down
4 changes: 2 additions & 2 deletions target_ensemble.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5879,7 +5879,7 @@
"# Use the cloudpickle library to serialize your function and its dependencies\n",
"import cloudpickle\n",
"p = cloudpickle.dumps(predict_ensemble)\n",
"with open(\"predict_ensemble.pkl\", \"wb\") as f:\n",
"with open(\"target_ensemble.pkl\", \"wb\") as f:\n",
" f.write(p)"
]
},
Expand Down Expand Up @@ -5920,7 +5920,7 @@
"# Download file if running in Google Colab\n",
"try:\n",
" from google.colab import files\n",
" files.download('predict_ensemble.pkl')\n",
" files.download('target_ensemble.pkl')\n",
"except:\n",
" pass"
]
Expand Down

0 comments on commit ff3a16f

Please sign in to comment.