ArtifactCollection

Training and fine-tuning models is done elsewhere in the W&B Python SDK. Use the Public API for querying and managing data after it has been logged to W&B.

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.