Commit 4ca30bd
Fix numpy scalar extraction (#372)
* extract numpy scalars properly
* change to one-liner
* Update src/squlearn/optimizers/approximated_gradients.py
Co-authored-by: Florian Wieland <114916947+ProfessorNova@users.noreply.github.com>
* Update src/squlearn/optimizers/approximated_gradients.py
Co-authored-by: Florian Wieland <114916947+ProfessorNova@users.noreply.github.com>
* Update src/squlearn/optimizers/approximated_gradients.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 c6899ad commit 4ca30bd
2 files changed
Lines changed: 13 additions & 14 deletions
File tree
- src/squlearn
- kernel/lowlevel_kernel
- optimizers
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
961 | 961 | | |
962 | 962 | | |
963 | 963 | | |
964 | | - | |
965 | | - | |
966 | | - | |
967 | | - | |
| 964 | + | |
| 965 | + | |
968 | 966 | | |
969 | 967 | | |
970 | 968 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
| |||
0 commit comments