Skip to content

Commit

Permalink
Merge pull request #46 from zenml-io/bugfix/model-fetching
Browse files Browse the repository at this point in the history
Fetch artifact from model version without type
  • Loading branch information
schustmi authored Nov 13, 2024
2 parents 8570197 + 7c38f0a commit f67756a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def hp_tuning_select_best_model(
best_metric = -1
# consume artifacts attached to current model version in Model Control Plane
for step_name in step_names:
hp_output = model.get_data_artifact("hp_result")
hp_output = model.get_artifact("hp_result")
model_: ClassifierMixin = hp_output.load()
# fetch metadata we attached earlier
metric = float(hp_output.run_metadata["metric"])
Expand Down

0 comments on commit f67756a

Please sign in to comment.