We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86ff5fb commit c71a1c9Copy full SHA for c71a1c9
src/fibad/train.py
@@ -54,7 +54,12 @@ def run(config):
54
55
results_root_dir = Path(config["general"]["results_dir"]).resolve()
56
mlflow.set_tracking_uri("file://" + str(results_root_dir / "mlflow"))
57
- mlflow.set_experiment("notebook")
+
58
+ # Get experiment_name and cast to string (it's a tomlkit.string by default)
59
+ experiment_name = str(config["train"]["experiment_name"])
60
61
+ # This will create the experiment if it doesn't exist
62
+ mlflow.set_experiment(experiment_name)
63
64
with mlflow.start_run(log_system_metrics=True):
65
_log_params(config)
0 commit comments