Use outputs path for log.
This commit is contained in:
Родитель
b10e66d2d6
Коммит
679af867d1
|
@ -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",
|
||||
|
|
Загрузка…
Ссылка в новой задаче