Skip to content

Commit

Permalink
Fix index in fetching the last unlisted run
Browse files Browse the repository at this point in the history
  • Loading branch information
stefannica committed Mar 4, 2023
1 parent 7324c57 commit 2a2ac6d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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

0 comments on commit 2a2ac6d

Please sign in to comment.