Skip to content

Commit

Permalink
name
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathu-lmn committed Dec 10, 2024
1 parent ec2bd93 commit 9e42b3c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions predictions.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@

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

0 comments on commit 9e42b3c

Please sign in to comment.