From 7943d7ec446cc74851973fbedae5ffc9037b2482 Mon Sep 17 00:00:00 2001 From: jordan Date: Tue, 26 Sep 2023 12:48:18 +0000 Subject: [PATCH] fix file handler error --- 07-train-pipeline.ipynb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/07-train-pipeline.ipynb b/07-train-pipeline.ipynb index 2e3bf03..662f52d 100644 --- a/07-train-pipeline.ipynb +++ b/07-train-pipeline.ipynb @@ -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",