benchmark
class YAHPOBenchmark(task_id, *, datadir=None, seed=None, prior=None, perturb_prior=None, session=None)
#
Bases: Benchmark[C, R, F]
PARAMETER | DESCRIPTION |
---|---|
task_id |
The task id to choose.
TYPE:
|
seed |
The seed to use
TYPE:
|
datadir |
The path to where mfpbench stores it data. If left to |
seed |
The seed for the benchmark instance
TYPE:
|
prior |
The prior to use for the benchmark. If None, no prior is used. If a str, will check the local location first for a prior specific for this benchmark, otherwise assumes it to be a Path. If a Path, will load the prior from the path. If a Mapping, will be used directly.
TYPE:
|
perturb_prior |
If given, will perturb the prior by this amount. Only used if
TYPE:
|
session |
The onnxruntime session to use. If None, will create a new one. Not for faint hearted This is only a backdoor for onnx compatibility issues with YahpoGym. You are advised not to use this unless you know what you are doing.
TYPE:
|
Source code in src/mfpbench/yahpo/benchmark.py
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 |
|
yahpo_base_benchmark_name: str
classvar
#
Base name of the yahpo benchmark.
yahpo_instances: tuple[str, ...] | None
attr
#
The instances available for this benchmark, if Any.
yahpo_task_id_name: str | None
classvar
#
Name of hp used to indicate task.
yahpo_forced_remove_hps: Mapping[str, int | float | str] | None
attr
#
Any hyperparameters that should be forcefully deleted from the space but have default values filled in
yahpo_replacements_hps: Sequence[tuple[str, str]] | None
attr
#
Any replacements that need to be done in hyperparameters [(dataclass_version, dict_version)]
datadir: Path
attr
#
The path to where the data is stored.
task_id: str
attr
#
The task id for this benchmark.
bench: yahpo_gym.BenchmarkSet
prop
#
The underlying yahpo gym benchmark.