1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-11 23:06:58 +08:00

Fix recorder related bugs

This commit is contained in:
Jactus
2020-11-10 00:32:18 +08:00
parent 633af182f4
commit 004e2f557b
6 changed files with 23 additions and 21 deletions

View File

@@ -184,10 +184,12 @@ class MLflowExpManager(ExpManager):
else:
if experiment_name not in self.experiments:
if mlflow.get_experiment_by_name(experiment_name) is not None:
raise Exception(
"The experiment has already been created before. Please pick another name or delete the files under uri."
logger.info(
"The experiment has already been created before. Try to resume the experiment..."
)
experiment_id = mlflow.create_experiment(experiment_name)
experiment_id = mlflow.get_experiment_by_name(experiment_name).experiment_id
else:
experiment_id = mlflow.create_experiment(experiment_name)
else:
experiment_id = self.experiments[experiment_name].id
experiment = self.experiments[experiment_name]