model_config_parser ¶
Parse the model config.
Functions:
-
get_pruner
–Get the pruner from the config.
-
get_sampler
–Get the sampler from the config.
-
get_suggestion
–Get the suggestion method from the config.
-
suggest_parameters
–Suggest parameters for the model.
get_pruner ¶
get_pruner(pruner_config: Pruner) -> BasePruner
Get the pruner from the config.
Source code in src/stimulus/learner/interface/model_config_parser.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
|
get_sampler ¶
get_sampler(sampler_config: Sampler) -> BaseSampler
Get the sampler from the config.
Source code in src/stimulus/learner/interface/model_config_parser.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
|
get_suggestion ¶
get_suggestion(
name: str,
suggestion_method_config: TunableParameter,
trial: Trial,
) -> Any
Get the suggestion method from the config.
Source code in src/stimulus/learner/interface/model_config_parser.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
|
suggest_parameters ¶
suggest_parameters(
trial: Trial,
params: dict[str, TunableParameter | VariableList],
) -> dict[str, Any]
Suggest parameters for the model.
Source code in src/stimulus/learner/interface/model_config_parser.py
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
|