From cf674db27c37f94eb0daa00627b61e8a9d931c36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20=C5=81ukasiewicz?= Date: Fri, 12 May 2023 19:22:18 +0200 Subject: [PATCH] Zaktualizuj 'training.py' --- training.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/training.py b/training.py index 1b3275b..bed9999 100644 --- a/training.py +++ b/training.py @@ -9,10 +9,12 @@ import random exint = Experiment('z-s434743-training') + exint.observers.append(MongoObserver(url='mongodb://admin:IUM_2021@172.17.0.1:27017', db_name='sacred')) exint.observers.append(FileStorageObserver('z-s434743-training/master')) + @exint.config def my_config(): EPOCHS = int(os.environ['EPOCHS']) @@ -20,7 +22,7 @@ def my_config(): @exint.main def my_main(EPOCHS, _run): - _run.info["epochs"] = EPOCHS, + _run.info["epochs"] = EPOCHS normalize = layers.Normalization() train_data_x = pandas.read_csv('./X_train.csv') _run.info["data"] = train_data_x @@ -46,5 +48,7 @@ def my_main(EPOCHS, _run): exint.run() + exint.add_artifact('test/saved_model.pb') + exint.add_source_file('./ium_z434743/train.py')