From d7e58bcd65bfac25a9047e959831a5f0d7c3db9d Mon Sep 17 00:00:00 2001 From: Alex Strick van Linschoten Date: Fri, 12 Jan 2024 09:50:35 +0100 Subject: [PATCH 1/2] Remove manual linkage from docs (#2272) (#2273) (cherry picked from commit 625c46c73906454c9a554688b914b37ee1ad425b) --- .../data-management/model-management.md | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/docs/book/user-guide/advanced-guide/data-management/model-management.md b/docs/book/user-guide/advanced-guide/data-management/model-management.md index 7140685dde4..48d868c2aa4 100644 --- a/docs/book/user-guide/advanced-guide/data-management/model-management.md +++ b/docs/book/user-guide/advanced-guide/data-management/model-management.md @@ -323,17 +323,5 @@ artifact, and you specify whether it's for a model or deployment by using the `is_model_artifact` and `is_deployment_artifact` flags (as shown above) else it will be assumed to be a data artifact. -### Manual Linkage - -Finally, artifacts can be linked to an existing model version manually using the -SDK: - -```python -model_version = ModelVersion(name="my_model", version="1.0.0") -model_version.link_artifact(my_artifact, name="new_artifact") -``` - -The `link_artifact` method handles creating this connection. -
ZenML Scarf
From 5e38fcd209c4d9f263a83fba8707e48c2d655d28 Mon Sep 17 00:00:00 2001 From: yo-harsh <144518311+yo-harsh@users.noreply.github.com> Date: Sat, 13 Jan 2024 16:52:05 +0530 Subject: [PATCH 2/2] Update track-ml-models.md --- docs/book/user-guide/starter-guide/track-ml-models.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/book/user-guide/starter-guide/track-ml-models.md b/docs/book/user-guide/starter-guide/track-ml-models.md index db98b395ffe..6d6666c7320 100644 --- a/docs/book/user-guide/starter-guide/track-ml-models.md +++ b/docs/book/user-guide/starter-guide/track-ml-models.md @@ -42,7 +42,7 @@ Once you configure a pipeline this way, **all** artifacts generated during pipel ```python from zenml import pipeline -from zenml.model import ModelVersion +from zenml import ModelVersion model_version = ModelVersion( # The name uniquely identifies this model @@ -268,4 +268,4 @@ ZenML Model and Model Versions are some of the most powerful features in ZenML. guide. -
ZenML Scarf
\ No newline at end of file +
ZenML Scarf