VESSL Docs
π Release Notes
π Community Slack
Searchβ¦
Welcome to VESSL Docs!
GETTING STARTED
Overview
Quickstart
End-to-end Guides
USER GUIDE
Organization
Project
Cluster
Dataset
Experiment
Model Registry
Sweep
Workspace
Commons
API REFERENCE
What is the VESSL CLI/SDK?
CLI
Python SDK
Integrations
Utilities API
configure
vessl.init
vessl.log
vessl.hp.update
vessl.progress
vessl.upload
vessl.finish
Dataset API
Experiment API
Cluster API
Image API
Model API
Organization API
Project API
SSH Key API
Sweep API
Volume API
Workspace API
TROUBLESHOOTING
GitHub Issues
Powered By
GitBook
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
import
vessl
β
d
=
{
"lr"
:
0.1
,
"optimizer"
:
"sgd"
}
vessl
.
hp
.
update
(
d
)
Option 2: record hyperparameters with Python argparse module
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
)
Option 3: record hyperparameters with
vessl.init()
β
vessl.init will have no effect in a VESSL-managed experiment
You can pass hyperparameters as a parameter of init.
import
vessl
β
d
=
{
"lr"
:
0.1
,
"optimizer"
:
"sgd"
}
vessl
.
init
(
hp
=
d
)
Or, you can call
vessl.init()
first, set
vessl.hp
, and call
vessl.hp.update()
without any parameters.
import
vessl
β
vessl
.
init
()
β
vessl
.
hp
.
lr
=
0.1
vessl
.
hp
.
optimizer
=
"sgd"
# vessl.hp = {'lr': '0.1', 'optimizer': 'sgd'}
β
vessl
.
hp
.
update
()
Previous
vessl.Audio
Next
vessl.progress
Last modified
4mo ago
Copy link
Outline