Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Fix index in fetching the last unlisted run #27

Merged
merged 3 commits into from
Mar 9, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix index in fetching the last unlisted run
  • Loading branch information
stefannica committed Mar 4, 2023
commit 2a2ac6d3f7e2295e23618864a11adf3df68c9bd9
4 changes: 2 additions & 2 deletions 2-1_Experiment_Tracking.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@
"source": [
"from zenml.post_execution import get_unlisted_runs\n",
"\n",
"pipeline_run = get_unlisted_runs()[-1]\n",
"pipeline_run = get_unlisted_runs()[0]\n",
"step = pipeline_run.get_step(\"trainer\")\n",
"experiment_tracker_url = step.metadata[\"experiment_tracker_url\"].value\n",
"\n",
Expand Down Expand Up @@ -436,7 +436,7 @@
"metadata": {},
"outputs": [],
"source": [
"trainer_step = get_unlisted_runs()[-1].get_step(\"trainer\")\n",
"trainer_step = get_unlisted_runs()[0].get_step(\"trainer\")\n",
"experiment_tracker_url = trainer_step.metadata[\"experiment_tracker_url\"].value\n",
"print(experiment_tracker_url)"
]
Expand Down
4 changes: 2 additions & 2 deletions 2-2_Local_Deployment.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
"source": [
"from zenml.post_execution import get_unlisted_runs\n",
"\n",
"last_run = get_unlisted_runs()[-1]\n",
"last_run = get_unlisted_runs()[0]\n",
"deployer_step = last_run.get_step(\"model_deployer\")\n",
"deployed_model_url = deployer_step.metadata[\"deployed_model_url\"].value\n",
"print(deployed_model_url)"
Expand Down Expand Up @@ -244,7 +244,7 @@
"metadata": {},
"outputs": [],
"source": [
"last_run = get_unlisted_runs()[-1]\n",
"last_run = get_unlisted_runs()[0]\n",
"X_test = last_run.steps[0].outputs[\"X_test\"].read()\n",
"y_test = last_run.steps[0].outputs[\"y_test\"].read()"
]
Expand Down
2 changes: 1 addition & 1 deletion 3-1_Data_Skew.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
"from zenml.integrations.evidently.visualizers import EvidentlyVisualizer\n",
"from zenml.post_execution import get_unlisted_runs\n",
"\n",
"last_run = get_unlisted_runs()[-1]\n",
"last_run = get_unlisted_runs()[0]\n",
"\n",
"skew_detection_step = last_run.get_step(step=\"skew_detector\")\n",
"evidently_outputs = skew_detection_step\n",
Expand Down