0.4.2 - seml.experiment.Experiment
Breaking changes
- The use of
sacred.Experiment
has been deprecated. Please useseml.experiment.Experiment
going forward. See https://github.com/TUM-DAML/seml/blob/master/examples/example_experiment.pyseml.experiment.Experiment
already includes the common MongoDB, logging and experiment statistics collection setup- By default, stdout is no longer stored in the MongoDB, reenable this in your
settings.py
or for a specific experiment withseml.experiment.Experiment(capture_output=True)
.
- Some settings have been reorganized, see https://github.com/TUM-DAML/seml/blob/master/src/seml/settings.py
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()