class Sweep
The set of runs associated with the sweep.
Attributes:
runs
(Runs): List of runsid
(str): Sweep IDproject
(str): The name of the project the sweep belongs toconfig
(dict): Dictionary containing the sweep configurationstate
(str): The state of the sweep. Can be “Finished”, “Failed”, “Crashed”, or “Running”.expected_run_count
(int): The number of expected runs for the sweep
method Sweep.__init__
property Sweep.config
The sweep configuration used for the sweep.property Sweep.entity
The entity associated with the sweep.property Sweep.expected_run_count
Return the number of expected runs in the sweep or None for infinite runs. Returns:int | None
: The expected_run_count property value.
property Sweep.name
The name of the sweep. Returns the first name that exists in the following priority order:- User-edited display name 2. Name configured at creation time 3. Sweep ID
property Sweep.order
Return the order key for the sweep.property Sweep.path
Returns the path of the project. The path is a list containing the entity, project name, and sweep ID.property Sweep.url
The URL of the sweep. The sweep URL is generated from the entity, project, the term “sweeps”, and the sweep ID.run_id. For SaaS users, it takes the form ofhttps://wandb.ai/entity/project/sweeps/sweeps_ID
.
property Sweep.username
Deprecated. UseSweep.entity
instead.
method Sweep.best_run
classmethod Sweep.get
client
: The client to use to execute the query.entity
: The entity (username or team) that owns the project.project
: The name of the project to fetch sweep from.sid
: The sweep ID to query.order
: The order in which the sweep’s runs are returned.query
: The query to use to execute the query.**kwargs
: Additional keyword arguments to pass to the query.