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

Commit

Permalink
Merge pull request #27 from zenml-io/bug/fix-last-run-fetch
Browse files Browse the repository at this point in the history
Fix index in fetching the last unlisted run
  • Loading branch information
stefannica authored Mar 9, 2023
2 parents 7324c57 + f60be8a commit 04c613c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 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
8 changes: 4 additions & 4 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 All @@ -222,7 +222,7 @@
"model_deployer = client.active_stack.model_deployer\n",
"services = model_deployer.find_model_server(\n",
" pipeline_name=\"train_evaluate_deploy_pipeline\",\n",
" pipeline_step_name=\"mlflow_model_deployer_step\",\n",
" pipeline_step_name=\"model_deployer\",\n",
" running=True,\n",
")\n",
"service = services[0]\n",
Expand All @@ -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 Expand Up @@ -294,7 +294,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.0"
"version": "3.8.10"
},
"vscode": {
"interpreter": {
Expand Down
4 changes: 2 additions & 2 deletions 2-3_Inference_Pipelines.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
" model_deployer = client.active_stack.model_deployer\n",
" services = model_deployer.find_model_server(\n",
" pipeline_name=\"train_evaluate_deploy_pipeline\",\n",
" pipeline_step_name=\"mlflow_model_deployer_step\",\n",
" pipeline_step_name=\"model_deployer\",\n",
" running=True,\n",
" )\n",
" service = services[0]\n",
Expand Down Expand Up @@ -257,7 +257,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.13"
"version": "3.8.10"
},
"vscode": {
"interpreter": {
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

0 comments on commit 04c613c

Please sign in to comment.