Commit 2728816
Fix zero num_features (#374)
* use None internally to store 0 num_features
* use super set_params
* Update src/squlearn/encoding_circuit/layered_encoding_circuit.py
Co-authored-by: Florian Wieland <114916947+ProfessorNova@users.noreply.github.com>
---------
Co-authored-by: Florian Wieland <114916947+ProfessorNova@users.noreply.github.com>1 parent 4ca30bd commit 2728816
3 files changed
Lines changed: 6 additions & 29 deletions
File tree
- src/squlearn/encoding_circuit
- circuit_library
Lines changed: 1 addition & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
| 405 | + | |
416 | 406 | | |
417 | 407 | | |
418 | 408 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| 216 | + | |
| 217 | + | |
216 | 218 | | |
217 | 219 | | |
218 | 220 | | |
| |||
Lines changed: 2 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2158 | 2158 | | |
2159 | 2159 | | |
2160 | 2160 | | |
2161 | | - | |
2162 | | - | |
2163 | | - | |
2164 | | - | |
2165 | | - | |
2166 | | - | |
2167 | | - | |
2168 | | - | |
2169 | | - | |
2170 | | - | |
2171 | | - | |
2172 | | - | |
2173 | | - | |
2174 | | - | |
2175 | | - | |
2176 | | - | |
2177 | | - | |
| 2161 | + | |
| 2162 | + | |
2178 | 2163 | | |
2179 | 2164 | | |
2180 | 2165 | | |
| |||
0 commit comments