Scenario
read_aslib_scenario(path, add_running_time_features=True)
Read an ASlib scenario from a file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path
|
str
|
The path to the ASlib scenario directory. |
required |
add_running_time_features
|
bool
|
Whether to include running time features. Defaults to True. |
True
|
Returns:
Type | Description |
---|---|
DataFrame
|
TODO: Update the return type annotation to match the actual return type. |
DataFrame
|
tuple[pd.DataFrame, pd.DataFrame, pd.DataFrame, list[str], bool, float]: - features (pd.DataFrame): A DataFrame containing the feature values for each instance. - performance (pd.DataFrame): A DataFrame containing the performance data for each algorithm and instance. - cv (pd.DataFrame): A DataFrame containing cross-validation data. - feature_groups (list[str]): A list of feature groups defined in the scenario. - maximize (bool): A flag indicating whether the objective is to maximize performance. - budget (float): The algorithm cutoff time or budget for the scenario. |
Raises:
Type | Description |
---|---|
ImportError
|
If the required ASlib library is not available. |
Source code in asf/scenario/aslib_reader.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 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 |
|