Commit 942f9de
committed
Fix TypeError in pipeline run initialization by detecting skopt spaces
- Added detection logic for `skopt` space objects (`Real`, `Integer`, `Categorical`) in `ml_grid/pipeline/main.py`.
- Updated parameter grid size calculation to use `calculate_combinations` instead of `ParameterGrid` when Bayesian parameter spaces are detected, even if `bayessearch` is globally False.
- Prevents `TypeError` when `ParameterGrid` encounters non-iterable `skopt` objects during pipeline initialization.1 parent 18656a9 commit 942f9de
1 file changed
Lines changed: 17 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
181 | 182 | | |
182 | 183 | | |
183 | 184 | | |
184 | | - | |
185 | | - | |
186 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
187 | 200 | | |
188 | 201 | | |
189 | 202 | | |
190 | | - | |
| 203 | + | |
191 | 204 | | |
192 | 205 | | |
193 | | - | |
194 | | - | |
195 | 206 | | |
196 | 207 | | |
197 | 208 | | |
| |||
0 commit comments