Commit c32b4e2
committed
Fix TypeError in grid search size calculation and improve parameter space detection
- Added logic to detect `skopt` space objects in `parameter_space` to prevent passing Bayesian parameters to `ParameterGrid`.
- Wrapped `ParameterGrid` size calculation in a try-except block to handle potential TypeErrors gracefully.
- Removed redundant `pg` calculation logic that was overriding safety checks.1 parent b5fcf42 commit c32b4e2
1 file changed
Lines changed: 26 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
399 | | - | |
400 | | - | |
401 | | - | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
402 | 425 | | |
403 | 426 | | |
404 | 427 | | |
405 | 428 | | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | 429 | | |
413 | 430 | | |
414 | 431 | | |
| |||
0 commit comments