> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wandb.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Python 코드로 sweep을 재개하려면 어떻게 하나요?

sweep을 재개하려면 `sweep_id`를 `wandb.agent()` 함수에 전달하세요.

```python theme={null}
import wandb

sweep_id = "your_sweep_id"

def train():
    # 트레이닝 코드를 여기에 작성하세요
    pass

wandb.agent(sweep_id=sweep_id, function=train)
```

***

<Badge stroke shape="pill" color="orange" size="md">
  [Sweeps](/ko/support/models/tags/sweeps)
</Badge>

<Badge stroke shape="pill" color="orange" size="md">
  [Python](/ko/support/models/tags/python)
</Badge>
