From 679af867d1c5ded7ddd1e970e05d9f9221f1b17b Mon Sep 17 00:00:00 2001 From: Mario Bourgoin Date: Thu, 27 Sep 2018 16:31:01 +0000 Subject: [PATCH] Use outputs path for log. --- 01_Training_Script.ipynb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/01_Training_Script.ipynb b/01_Training_Script.ipynb index 130cf67..f0d6e85 100644 --- a/01_Training_Script.ipynb +++ b/01_Training_Script.ipynb @@ -214,7 +214,9 @@ "source": [ "%%writefile --append TrainTestClassifier.py\n", "\n", - " logging.basicConfig(filename=args.log, level=logging.DEBUG)\n", + " outputs_path = args.outputs\n", + " log_path = os.path.join(outputs_path, args.log)\n", + " logging.basicConfig(filename=log_path, level=logging.DEBUG)\n", "\n", " print('Prepare the training data.')\n", " logging.info('Prepare the training data.')\n",