> ## 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.

# ブール変数をハイパーパラメーターのフラグとして指定するにはどうすればよいですか?

ハイパーパラメーターをブールフラグとして渡すには、sweep の設定の `command` セクションで `${args_no_boolean_flags}` マクロを使用します。このマクロは、ブール型のパラメーターを自動的にフラグとして含めます。`param` が `True` の場合、コマンドには `--param` が渡されます。`param` が `False` の場合、マクロはそのフラグを省略します。

***

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