How to use the seml.database_utils.create_mongodb_observer function in seml

To help you get started, we’ve selected a few seml examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TUM-DAML / seml / examples / experiment_check_fails.py View on Github external
def config():
    observe_slack = False
    observe_neptune = False
    if observe_slack:
        pass
    if observe_neptune:
        pass
    overwrite = None
    db_collection = None
    if db_collection is not None:
        ex.observers.append(db_utils.create_mongodb_observer(db_collection, overwrite=overwrite))