Skip to content

Commit 9e42b3c

Browse files
committed
name
1 parent ec2bd93 commit 9e42b3c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

predictions.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@
144144

145145
# Save the best model's parameters in a separate mlflow experiment
146146
mlflow.set_experiment("BestModelParams")
147-
with mlflow.start_run(run_name="Best Model") as run:
147+
name = best_model.__class__.__name__
148+
with mlflow.start_run(run_name=name) as run:
148149
mlflow.log_params(best_params)
149-
mlflow.log_metric("best_accuracy", best_score)
150+
mlflow.log_metric("f1", best_score)

0 commit comments

Comments
 (0)