メインコンテンツへスキップ

class ArtifactCollection

関連する Artifacts のグループを表す artifact collection。 引数:
  • client: W&B のクエリに使用するクライアントインスタンス。
  • entity: プロジェクトを所有する entity (ユーザーまたはチーム) 。
  • project: artifact collection をクエリする対象のプロジェクト名。
  • name: artifact collection の名。
  • type: artifact collection のタイプ (例: “dataset”、“model”) 。
  • organization: 該当する場合のオプションの組織名。
  • attrs: artifact collection の初期化に使用する属性のオプションのマッピング。指定しない場合、オブジェクトは初期化時に W&B から属性を読み込みます。

プロパティ ArtifactCollection.aliases

このコレクションに含まれるすべての artifact バージョンのエイリアス。 戻り値:
  • list[str]: aliases プロパティの値。

プロパティ ArtifactCollection.created_at

artifact collection が作成された日時。 戻り値:
  • str: created_at プロパティの値。

プロパティ ArtifactCollection.description

artifact collection の説明。 戻り値:
  • str | None: 説明の値。

プロパティ ArtifactCollection.entity

プロジェクトの所有者である entity (ユーザーまたはチーム) 。 戻り値:
  • str: entity のプロパティ値。

プロパティ ArtifactCollection.id

artifact collection の一意の識別子です。 戻り値:
  • str: id プロパティの値。

プロパティ ArtifactCollection.name

artifact collection の名です。 戻り値:
  • str: name プロパティの値。

プロパティ ArtifactCollection.project

artifact collection が含まれるプロジェクト。 戻り値:
  • str: プロジェクトのプロパティ値。

プロパティ ArtifactCollection.tags

artifact collection に関連付けられているタグ。 戻り値:
  • list[str]: tags プロパティの値。

プロパティ ArtifactCollection.type

ArtifactCollection のタイプを返します。

プロパティ ArtifactCollection.updated_at

ArtifactCollection が最後に更新された日時。 戻り値:
  • str | None: updated_at プロパティの値。

method ArtifactCollection.artifacts

artifacts(per_page: 'int' = 50) → Artifacts
コレクション内のすべてのアーティファクトを取得します。

method ArtifactCollection.change_type

change_type(new_type: 'str') → None
非推奨です。代わりに save でタイプを直接変更してください。

method ArtifactCollection.delete

delete() → None
artifact collection 全体を削除します。

method ArtifactCollection.is_sequence

is_sequence() → bool
artifact collection がシーケンスかどうかを返します。

method ArtifactCollection.save

save() → None
artifact collection に加えた変更内容を保存します。