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

class ArtifactType

指定されたタイプに基づいてクエリ条件を満たす Artifacts オブジェクト。 Args:
  • client: W&B へのクエリに使用するクライアントインスタンス。
  • entity: Projects を所有する Entity(Users または Teams)。
  • project: アーティファクトタイプをクエリする Projects の名前。
  • type_name: アーティファクトタイプの名前。
  • attrs: ArtifactType を初期化するためのオプションの属性。省略された場合、オブジェクトは初期化時に W&B から属性を読み込みます。

property ArtifactType.id

アーティファクトタイプのユニークな識別子。 Returns:
  • str: id プロパティの値。

property ArtifactType.name

アーティファクトタイプの名前。 Returns:
  • str: name プロパティの値。

method ArtifactType.collection

collection(name: 'str') → ArtifactCollection
名前を指定して特定のアーティファクトコレクションを取得します。 Args:
  • name (str): 取得するアーティファクトコレクションの名前。

method ArtifactType.collections

collections(per_page: 'int' = 50) → ArtifactCollections
このアーティファクトタイプに関連付けられているすべてのアーティファクトコレクションを取得します。 Args:
  • per_page (int): 1ページあたりに取得するアーティファクトコレクションの数。デフォルトは 50 です。