add mongo observer

This commit is contained in:
Sebastian Wałęsa 2022-05-09 11:12:50 +02:00
parent 023b0756a0
commit 85df03ecbb

View File

@ -18,6 +18,7 @@ from sacred.observers import MongoObserver
ex = Experiment("IUM_478839", save_git_info=False) ex = Experiment("IUM_478839", save_git_info=False)
ex.observers.append(FileStorageObserver('IUM_478839')) ex.observers.append(FileStorageObserver('IUM_478839'))
ex.observers.append(MongoObserver(url='mongodb://admin:IUM_2021@172.17.0.1:27017', db_name='sacred'))
@ex.config @ex.config
def my_config(): def my_config():