Scenario
read_aslib_scenario(path, add_running_time_features=True, training_par_factor=10.0)
Read an ASlib scenario from a directory.
Parameters
path : str The path to the ASlib scenario directory. add_running_time_features : bool, default=True Whether to include running time features (feature costs). training_par_factor : float or None, default=10.0 PAR factor to apply to training performance data. Timeouts (values > budget) are replaced with budget * training_par_factor. Set to None to disable.
Returns
tuple A tuple containing (features, performance, features_running_time, cv, feature_groups, maximize, budget, algorithm_features) where: - features: pd.DataFrame of feature values per instance. - performance: pd.DataFrame of algorithm performance per instance. - features_running_time: pd.DataFrame of feature costs per instance. - cv: pd.DataFrame of cross-validation fold assignments. - feature_groups: dict of feature group definitions. - maximize: bool, True if higher performance values are better. - budget: float, the algorithm cutoff time. - algorithm_features: pd.DataFrame of algorithm features, or None.
Raises
ImportError If the required libraries (pyyaml, liac-arff) are not available.
Source code in asf/scenario/aslib_reader.py
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 | |