Skip to content

Commit

Permalink
fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
avishniakov committed Jan 12, 2024
1 parent 840a215 commit db7862c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def promote_get_metrics(

# Get current model version metric in current run
model = get_step_context().model
current_metrics = current_version.get_model_artifact("model").run_metadata["metrics"].value
current_metrics = model.get_model_artifact("model").run_metadata["metrics"].value
logger.info(f"Current model version metrics are {current_metrics}")

# Get latest saved model version metric in target environment
Expand All @@ -48,8 +48,8 @@ def promote_get_metrics(
except KeyError:
latest_version = None
if latest_version:
latest_metrics = current_version.get_model_artifact("model").run_metadata["metrics"].value
logger.info(f"Current model version metrics are {latest_metrics}")
latest_metrics = latest_version.get_model_artifact("model").run_metadata["metrics"].value
logger.info(f"Latest model version metrics are {latest_metrics}")
else:
logger.info("No currently promoted model version found.")
latest_metrics = current_metrics
Expand Down

0 comments on commit db7862c

Please sign in to comment.