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

# vessl.hp.update

To record hyperparameters in VESSL **experiments**, set `vessl.hp` and update with `vessl.hp.update` as follows.

#### Option 1: record hyperparameters with Python dictionary

```python theme={null}
import vessl

d = {"lr": 0.1, "optimizer": "sgd"}
vessl.hp.update(d)
```

#### Option 2: record hyperparameters with Python argparse module

```python theme={null}
import argparse
import vessl

parser = argparse.ArgumentParser()
parser.add_argument('-n', '--num_layers', type=int, default=3)
args = parser.parse_args(args=[])

vessl.hp.update(args)
```
