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

class Sweeps

Sweep オブジェクトのコレクションに対するレイジーイテレータです。 Examples:
from wandb.apis.public import Api

# 指定したプロジェクトとエンティティから sweeps を取得
sweeps = Api().project(name="project_name", entity="entity").sweeps()

# sweep をループして詳細を表示
for sweep in sweeps:
    print(f"Sweep name: {sweep.name}")
    print(f"Sweep ID: {sweep.id}")
    print(f"Sweep URL: {sweep.url}")
    print("----------")

method Sweeps.__init__

__init__(
    client: 'RetryingClient',
    entity: 'str',
    project: 'str',
    per_page: 'int' = 50
) → Sweeps
Sweep オブジェクトの反復可能なコレクション。 Args:
  • client: W&B へのクエリに使用される API クライアント。
  • entity: Sweeps を所有する Entities 。
  • project: Sweeps を含む Projects 。
  • per_page: API への 1 回のリクエストで取得する Sweeps の数。

property Sweeps.length