From 411ec3db8638324c4e5cf5068bf087128fc371f0 Mon Sep 17 00:00:00 2001 From: AdamOsiowy123 Date: Mon, 9 May 2022 08:33:50 +0200 Subject: [PATCH] fix mongo observer --- Scripts/evaluate_neural_network.py | 5 +++-- Scripts/train_neural_network.py | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Scripts/evaluate_neural_network.py b/Scripts/evaluate_neural_network.py index bda681a..ceec56e 100644 --- a/Scripts/evaluate_neural_network.py +++ b/Scripts/evaluate_neural_network.py @@ -12,8 +12,9 @@ from sacred.observers import MongoObserver from sacred.observers import FileStorageObserver from sacred import Experiment -ex = Experiment(name='fake_job_classification_evaluation',save_git_info=False) -# ex.observers.append(MongoObserver(url='mongodb://mongo_user:mongo_password_IUM_2021@localhost:27017')) +ex = Experiment(name='s444452_fake_job_classification_evaluation', save_git_info=False) +ex.observers.append(MongoObserver(url='mongodb://admin:IUM_2021@172.17.0.1:27017', + db_name='sacred')) ex.observers.append(FileStorageObserver('my_runs')) build_number = sys.argv[1] diff --git a/Scripts/train_neural_network.py b/Scripts/train_neural_network.py index b4d9f64..3b749a2 100644 --- a/Scripts/train_neural_network.py +++ b/Scripts/train_neural_network.py @@ -10,8 +10,9 @@ from sacred.observers import MongoObserver from sacred.observers import FileStorageObserver from sacred import Experiment -ex = Experiment(name='fake_job_classification_training',save_git_info=False) -# ex.observers.append(MongoObserver(url='mongodb://mongo_user:mongo_password_IUM_2021@localhost:27017')) +ex = Experiment(name='s444452_fake_job_classification_training', save_git_info=False) +ex.observers.append(MongoObserver(url='mongodb://admin:IUM_2021@172.17.0.1:27017', + db_name='sacred')) ex.observers.append(FileStorageObserver('my_runs')) data_path = sys.argv[1]