aup.Proposer.HyperoptProposer¶
This is converted from Hyperopt repo commit 762e89f
Configuration¶
General parameters¶
Name |
Default value |
Explanation |
---|---|---|
proposer |
hyperopt |
|
random_seed |
0 |
[Optional] seed for random generator |
engine |
tpe |
engine to generate configurations for HyperOpt |
n_samples |
max_evals in hyperopt |
Specific parameters for parameter_config
¶
Name |
Explanation |
---|---|
name |
name of the variable, will be used in the job config, i.e. training code |
type |
type of the parameter to be sampled: choose from “float”,”int”,”choice” |
range |
range of the parameter. For “choice”, list all the feasible values |
APIs¶
-
class
HyperoptProposer
(config, random_seed=0)[source]¶ Bases:
aup.Proposer.AbstractProposer.AbstractProposer
-
failed
(job)[source]¶ Failed jobs unsupported by Hyperopt Proposer.
- Parameters
job (Job) – Failed job, containing job id
-
save
(path)[source]¶ Save Proposer state to path.
Some proposer can not generate new parameters after saving.
- Parameters
path (str) – path to save
-