Thanks to visit codestin.com
Credit goes to docs.wandb.ai

Skip to main content
GitHub source

function agent

agent(
    sweep_id: str,
    function: Optional[Callable] = None,
    entity: Optional[str] = None,
    project: Optional[str] = None,
    count: Optional[int] = None
) โ†’ None
Start one or more sweep agents. The sweep agent uses the sweep_id to know which sweep it is a part of, what function to execute, and (optionally) how many agents to run. Args:
  • sweep_id: The unique identifier for a sweep. A sweep ID is generated by W&B CLI or Python SDK.
  • function: A function to call instead of the โ€œprogramโ€ specified in the sweep config.
  • entity: The username or team name where you want to send W&B runs created by the sweep to. Ensure that the entity you specify already exists. If you donโ€™t specify an entity, the run will be sent to your default entity, which is usually your username.
  • project: The name of the project where W&B runs created from the sweep are sent to. If the project is not specified, the run is sent to a project labeled โ€œUncategorizedโ€.
  • count: The number of sweep config trials to try.