Skip to content

Commit da9a087

Browse files
HOTFIX: ArtifactDataset refactoring typos in documentation
1 parent b0dd72f commit da9a087

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/usage/subpackages/catalog.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,19 +80,19 @@ You can create custom dataset types by subclassing :py:class:`Dataset`. Let's bu
8080
Artifacts
8181
------------------
8282

83-
Scaffold supports versioned artifacts through the :py:class:`Artifact` class. Artifacts are managed by an artifact manager, such as :py:class:`FileSystemArtifactManagerDataset` or :py:class:`WandBArtifactManagerDataset`.
83+
Scaffold supports versioned artifacts through the :py:class:`ArtifactDataset` class. Artifacts are managed by an artifact manager, such as :py:class:`FileSystemArtifactManagerDataset` or :py:class:`WandBArtifactManagerDataset`.
8484

8585
.. code-block:: python
8686
87-
from scaffold.data.catalog import Catalog, Artifact, FileSystemArtifactManagerDataset
87+
from scaffold.data.catalog import Catalog, ArtifactDataset, FileSystemArtifactManagerDataset
8888
8989
c = Catalog()
9090
9191
# Define an artifact manager
9292
manager = FileSystemArtifactManagerDataset(url="./artifacts")
9393
9494
# Add an artifact to the catalog
95-
c["my_model"] = Artifact(artifact_name="model", manager=manager)
95+
c["my_model"] = ArtifactDataset(artifact_name="model", manager=manager)
9696
9797
# Push a file as a new version of the artifact
9898
c["my_model"].push("path/to/model.pt")
@@ -125,4 +125,4 @@ Catalogs can be nested to create hierarchical structures. Use another :py:class:
125125
})
126126
127127
# Access nested dataset
128-
print(c["imagenet"]["train"]().collect())
128+
print(c["imagenet"]["train"]().collect())

0 commit comments

Comments
 (0)