Skip to main content

class ArtifactCollection

An artifact collection that represents a group of related artifacts. Args:
  • client: The client instance to use for querying W&B.
  • entity: The entity (user or team) that owns the project.
  • project: The name of the project to query for artifact collections.
  • name: The name of the artifact collection.
  • type: The type of the artifact collection (e.g., โ€œdatasetโ€, โ€œmodelโ€).
  • organization: Optional organization name if applicable.
  • attrs: Optional mapping of attributes to initialize the artifact collection. If not provided, the object will load its attributes from W&B upon initialization.

property ArtifactCollection.aliases

Artifact Collection Aliases. Returns:
  • list[str]: The aliases property value.

property ArtifactCollection.created_at

The creation date of the artifact collection. Returns:
  • str: The created_at property value.

property ArtifactCollection.description

A description of the artifact collection. Returns:
  • str: The description property value.

property ArtifactCollection.id

The unique identifier of the artifact collection. Returns:
  • str: The id property value.

property ArtifactCollection.name

The name of the artifact collection. Returns:
  • str: The name property value.

property ArtifactCollection.tags

The tags associated with the artifact collection. Returns:
  • list[str]: The tags property value.

property ArtifactCollection.type

Returns the type of the artifact collection.

method ArtifactCollection.artifacts

artifacts(per_page: 'int' = 50) โ†’ Artifacts
Get all artifacts in the collection.

method ArtifactCollection.change_type

change_type(new_type: 'str') โ†’ None
Deprecated, change type directly with save instead.

method ArtifactCollection.delete

delete() โ†’ None
Delete the entire artifact collection.

method ArtifactCollection.is_sequence

is_sequence() โ†’ bool
Return whether the artifact collection is a sequence.

method ArtifactCollection.save

save() โ†’ None
Persist any changes made to the artifact collection.
โŒ˜I