check_search_cv_results_structure¶
yohou.testing.search.check_search_cv_results_structure(search_cv, y, X_actual=None, forecasting_horizon=3, X_future=None, X_forecast=None)
¶
Check cv_results_ has required structure.
Validates that cv_results_ contains params, mean_test_score, rank_test_score, and split{n}_test_score keys with correct lengths.
Parameters¶
| Name | Type | Description | Default |
|---|---|---|---|
search_cv
|
BaseSearchCV
|
Fitted search CV instance |
required |
y
|
DataFrame
|
Training target data |
required |
X_actual
|
DataFrame
|
Training features |
None
|
forecasting_horizon
|
int
|
Number of steps ahead to forecast |
3
|
Raises¶
| Type | Description |
|---|---|
AssertionError
|
If cv_results_ structure is invalid |
Source Code¶
Show/Hide source
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 | |