Skip to content

Commit

Permalink
fix file handler error
Browse files Browse the repository at this point in the history
  • Loading branch information
tottenjordan committed Sep 26, 2023
1 parent 57c2dd3 commit 7943d7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 07-train-pipeline.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1873,9 +1873,9 @@
" )\n",
" logging.info(f'loaded_skew_test_instance: {loaded_skew_test_instance}')\n",
" \n",
" filehandler = open(SKEW_FEATURES_STATS_FILE, 'rb')\n",
" SKEW_FEATURES = pkl.load(filehandler)\n",
" filehandler.close()\n",
" filehandler_v2 = open(SKEW_FEATURES_STATS_FILE, 'rb')\n",
" SKEW_FEATURES = pkl.load(filehandler_v2)\n",
" filehandler_v2.close()\n",
" \n",
" mean_durations, std_durations = SKEW_FEATURES['pl_duration_ms_new']\n",
" mean_num_songs, std_num_songs = SKEW_FEATURES['num_pl_songs_new']\n",
Expand Down

0 comments on commit 7943d7e

Please sign in to comment.