From 5113a9895a38dbab66c766abb6f60e246f99797d Mon Sep 17 00:00:00 2001 From: Mario Bourgoin Date: Tue, 10 Dec 2019 20:19:26 +0000 Subject: [PATCH] Remove sudo required workaround --- 03_Run_Locally.ipynb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/03_Run_Locally.ipynb b/03_Run_Locally.ipynb index fa4e09f..5c7f222 100644 --- a/03_Run_Locally.ipynb +++ b/03_Run_Locally.ipynb @@ -179,7 +179,7 @@ "source": [ "est = Estimator(source_directory=os.path.join('.', 'scripts'), \n", " entry_script='TrainClassifier.py',\n", - " script_params={'--data-folder': os.path.abspath('.'),\n", + " script_params={'--data-folder': '/data',\n", " '--estimators': estimators,\n", " '--match': 5,\n", " '--ngrams': 2,\n", @@ -188,8 +188,8 @@ " compute_target='local',\n", " conda_packages=['pandas==0.23.4',\n", " 'scikit-learn==0.21.3',\n", - " 'lightgbm==2.2.1'],\n", - " use_docker=False)" + " 'lightgbm==2.2.1'])\n", + "est.run_config.environment.docker.arguments.extend(['-v', ''.join([os.path.abspath('.'), ':', '/data'])])" ] }, {