Dyhpo
neps.optimizers.multi_fidelity.dyhpo
#
MFEIBO
#
MFEIBO(
pipeline_space: SearchSpace,
budget: int = None,
step_size: int | float = 1,
optimal_assignment: bool = False,
use_priors: bool = False,
sample_default_first: bool = False,
sample_default_at_target: bool = False,
loss_value_on_error: None | float = None,
cost_value_on_error: None | float = None,
patience: int = 100,
ignore_errors: bool = False,
logger=None,
surrogate_model: str | Any = "deep_gp",
surrogate_model_args: dict = None,
domain_se_kernel: str = None,
graph_kernels: list = None,
hp_kernels: list = None,
acquisition: str | BaseAcquisition = acquisition,
acquisition_args: dict = None,
acquisition_sampler: (
str | AcquisitionSampler
) = "freeze-thaw",
acquisition_sampler_args: dict = None,
model_policy: Any = FreezeThawModel,
initial_design_fraction: float = 0.75,
initial_design_size: int = 10,
initial_design_budget: int = None,
)
Bases: BaseOptimizer
Base class for MF-BO algorithms that use DyHPO-like acquisition and budgeting.
PARAMETER | DESCRIPTION |
---|---|
pipeline_space |
Space in which to search
TYPE:
|
budget |
Maximum budget
TYPE:
|
use_priors |
Allows random samples to be generated from a default Samples generated from a Gaussian centered around the default value
TYPE:
|
sampling_policy |
The type of sampling procedure to use
|
promotion_policy |
The type of promotion procedure to use
|
loss_value_on_error |
Setting this and cost_value_on_error to any float will supress any error during bayesian optimization and will use given loss value instead. default: None
TYPE:
|
cost_value_on_error |
Setting this and loss_value_on_error to any float will supress any error during bayesian optimization and will use given cost value instead. default: None
TYPE:
|
logger |
logger object, or None to use the neps logger
DEFAULT:
|
sample_default_first |
Whether to sample the default configuration first
TYPE:
|
Source code in neps/optimizers/multi_fidelity/dyhpo.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 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 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 |
|
get_config_and_ids
#
get_config_and_ids() -> tuple[SearchSpace, str, str | None]
...and this is the method that decides which point to query.
RETURNS | DESCRIPTION |
---|---|
tuple[SearchSpace, str, str | None]
|
|
Source code in neps/optimizers/multi_fidelity/dyhpo.py
get_cost
#
Calls result.utils.get_cost() and passes the error handling through. Please use self.get_cost() instead of get_cost() in all optimizer classes.
Source code in neps/optimizers/base_optimizer.py
get_learning_curve
#
Calls result.utils.get_loss() and passes the error handling through. Please use self.get_loss() instead of get_loss() in all optimizer classes.
Source code in neps/optimizers/base_optimizer.py
get_loss
#
Calls result.utils.get_loss() and passes the error handling through. Please use self.get_loss() instead of get_loss() in all optimizer classes.
Source code in neps/optimizers/base_optimizer.py
load_results
#
load_results(
previous_results: dict[str, ConfigResult],
pending_evaluations: dict[str, SearchSpace],
) -> None
This is basically the fit method.
PARAMETER | DESCRIPTION |
---|---|
previous_results |
[description]
TYPE:
|
pending_evaluations |
[description]
TYPE:
|
Source code in neps/optimizers/multi_fidelity/dyhpo.py
total_budget_spent
#
Calculates the toal budget spent so far.
This is calculated as a function of the fidelity range provided, that takes into account the minimum budget and the step size.