Skip to content

0.4.2 - seml.experiment.Experiment

Compare
Choose a tag to compare
@n-gao n-gao released this 12 Feb 17:41
· 82 commits to master since this release

Breaking changes

Features

  • Added seml <col> print-output: print experiment outputs directly via CLI. This command first attempts to gather the output via the slurm log file. If that fails it will search for the correct log within the MongoDB.
  • Added seml --version

TLDR:

old

import sacred
import seml

ex = sacred.Experiment()
seml.setup_logger(ex)

@ex.post_run_hook
def collect_stats(_run):
    seml.collect_exp_stats(_run)

@ex.config
def config():
    overwrite = None
    db_collection = None
    if db_collection is not None:
        ex.observers.append(
            seml.create_mongodb_observer(db_collection, overwrite=overwrite)
        )

new

from seml.experiment import Experiment

ex = Experiment()