get
def get(name, *, prior=None, preload=False, **kwargs)
#
Get a benchmark.
PARAMETER | DESCRIPTION |
---|---|
name |
The name of the benchmark
TYPE:
|
prior |
The prior to use for the benchmark. * str - If it ends in {.json} or {.yaml, .yml}, it will convert it to a path and use it as if it is a path to a config. Otherwise, it is treated as preset * Path - path to a file * Config - A Config object * None - Use the default if available |
preload |
Whether to preload the benchmark data in
TYPE:
|
**kwargs |
Extra arguments, optional or required for other benchmarks. Please look up the associated benchmarks.
TYPE:
|
For the **kwargs
, please see the benchmarks listed below by name=
name='lcbench'
(YAHPO-GYM)
Possible task_id=
:
('3945', '7593', '34539', '126025', '126026', '126029', '146212', '167104', '167149', '167152', '167161', '167168', '167181', '167184', '167185', '167190', '167200', '167201', '168329', '168330', '168331', '168335', '168868', '168908', '168910', '189354', '189862', '189865', '189866', '189873', '189905', '189906', '189908', '189909')
#
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:
|
name='lm1b_transformer_2048'
(PD1)
PARAMETER | DESCRIPTION |
---|---|
datadir |
Path to the data directory |
seed |
The seed to use for the space
TYPE:
|
prior |
Any prior to use for the benchmark
TYPE:
|
perturb_prior |
Whether to perturb the prior. If specified, this is interpreted as the std of a normal from which to perturb numerical hyperparameters of the prior, and the raw probability of swapping a categorical value.
TYPE:
|
name='uniref50_transformer_128'
(PD1)
PARAMETER | DESCRIPTION |
---|---|
datadir |
Path to the data directory |
seed |
The seed to use for the space
TYPE:
|
prior |
Any prior to use for the benchmark
TYPE:
|
perturb_prior |
Whether to perturb the prior. If specified, this is interpreted as the std of a normal from which to perturb numerical hyperparameters of the prior, and the raw probability of swapping a categorical value.
TYPE:
|
name='cifar100_wideresnet_2048'
(PD1)
PARAMETER | DESCRIPTION |
---|---|
datadir |
Path to the data directory |
seed |
The seed to use for the space
TYPE:
|
prior |
Any prior to use for the benchmark
TYPE:
|
perturb_prior |
Whether to perturb the prior. If specified, this is interpreted as the std of a normal from which to perturb numerical hyperparameters of the prior, and the raw probability of swapping a categorical value.
TYPE:
|
name='imagenet_resnet_512'
(PD1)
PARAMETER | DESCRIPTION |
---|---|
datadir |
Path to the data directory |
seed |
The seed to use for the space
TYPE:
|
prior |
Any prior to use for the benchmark
TYPE:
|
perturb_prior |
Whether to perturb the prior. If specified, this is interpreted as the std of a normal from which to perturb numerical hyperparameters of the prior, and the raw probability of swapping a categorical value.
TYPE:
|
name='jahs'
Possible task_id=
:
PARAMETER | DESCRIPTION |
---|---|
task_id |
The specific task to use.
TYPE:
|
datadir |
The path to where mfpbench stores it data. If left to |
seed |
The seed to give this benchmark instance
TYPE:
|
prior |
The prior to use for the benchmark.
TYPE:
|
perturb_prior |
If given, will perturb the prior by this amount.
Only used if
TYPE:
|
name='mfh3'
PARAMETER | DESCRIPTION |
---|---|
seed |
The seed to use.
TYPE:
|
bias |
How much bias to introduce
TYPE:
|
noise |
How much noise to introduce
TYPE:
|
prior |
The prior to use for the benchmark.
TYPE:
|
perturb_prior |
If not None, will perturb the prior by this amount. For numericals, while for categoricals, this is interpreted as the probability of swapping the value for a random one.
TYPE:
|
name='mfh6'
PARAMETER | DESCRIPTION |
---|---|
seed |
The seed to use.
TYPE:
|
bias |
How much bias to introduce
TYPE:
|
noise |
How much noise to introduce
TYPE:
|
prior |
The prior to use for the benchmark.
TYPE:
|
perturb_prior |
If not None, will perturb the prior by this amount. For numericals, while for categoricals, this is interpreted as the probability of swapping the value for a random one.
TYPE:
|
name='lcbench_tabular'
Possible task_id=
:
('adult', 'airlines', 'albert', 'Amazon_employee_access', 'APSFailure', 'Australian', 'bank-marketing', 'blood-transfusion-service-center', 'car', 'christine', 'cnae-9', 'connect-4', 'covertype', 'credit-g', 'dionis', 'fabert', 'Fashion-MNIST', 'helena', 'higgs', 'jannis', 'jasmine', 'jungle_chess_2pcs_raw_endgame_complete', 'kc1', 'KDDCup09_appetency', 'kr-vs-kp', 'mfeat-factors', 'MiniBooNE', 'nomao', 'numerai28.6', 'phoneme', 'segment', 'shuttle', 'sylvine', 'vehicle', 'volkert')
PARAMETER | DESCRIPTION |
---|---|
task_id |
The task to benchmark on.
TYPE:
|
datadir |
The directory to look for the data in. If |
remove_constants |
Whether to remove constant config columns from the data or not.
TYPE:
|
seed |
The seed to use.
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 not None, will perturb the prior by this amount. For numericals, this is interpreted as the standard deviation of a normal distribution while for categoricals, this is interpreted as the probability of swapping the value for a random one.
TYPE:
|
Source code in src/mfpbench/get.py
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 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 |
|