{"id":24676,"library":"sweeps","title":"sweeps","description":"Weights and Biases Hyperparameter Sweeps Engine. Current version 0.2.0. Release cadence is irregular; last release was v0.2.0.","status":"active","version":"0.2.0","language":"python","source_language":"en","source_url":"https://github.com/wandb/sweeps","tags":["hyperparameter-optimization","wandb","sweeps","machine-learning"],"install":[{"cmd":"pip install sweeps","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Required for logging sweep results to W&B","package":"wandb","optional":false},{"reason":"Required for certain sweep algorithms (>=1.0)","package":"scikit-learn","optional":false}],"imports":[{"note":"","wrong":"","symbol":"sweeps","correct":"import sweeps"}],"quickstart":{"code":"import wandb\nimport sweeps\n\nsweep_config = {\n    'method': 'random',\n    'parameters': {\n        'learning_rate': {'min': 0.001, 'max': 0.1},\n        'batch_size': {'values': [16, 32, 64]}\n    }\n}\n\nsweep_id = wandb.sweep(sweep_config, project='my-sweep')\ndef train():\n    run = wandb.init()\n    lr = wandb.config.learning_rate\n    bs = wandb.config.batch_size\n    # ... training code ...\n    wandb.log({'accuracy': 0.9})\n\nwandb.agent(sweep_id, function=train, count=5)","lang":"python","description":"Initialize a W&B sweep with sweeps config, define training function, launch agent."},"warnings":[{"fix":"Ensure `wandb` is installed: `pip install wandb`","message":"The `sweeps` library is a standalone engine but sweep execution still requires `wandb` to start the agent. Do not attempt to run sweeps without `wandb` installed.","severity":"gotcha","affected_versions":"all"},{"fix":"Use `method: 'random'` in sweep configuration.","message":"Sweep methods `bayes` and `grid` may not be fully supported in future versions. Prefer `random` or custom search.","severity":"deprecated","affected_versions":"0.2.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `pip install sweeps` to install the package.","cause":"The `sweeps` library is not installed.","error":"ModuleNotFoundError: No module named 'sweeps'"},{"fix":"Check the training function for bugs and ensure all dependencies (e.g., scikit-learn) are installed.","cause":"The training function defined for the sweep agent may have an error, or required packages are missing.","error":"wandb: ERROR Error while calling wandb sweep function: ..."}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}