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 2 commits
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
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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ license = "Apache-2.0"

[tool.poetry.dependencies]
python = ">=3.7.1,<3.9"
zenml = "0.20.0rc1"
zenml = "0.35.1"
notebook = "*"

[tool.poetry.dev-dependencies]
Expand Down