Commit 4259823
fix: make_glm_data ordinal crash on NumPy 2.x
np.random.choice(..., 1, p=...) with size=1 returns a 1-element array
on NumPy 2.x, causing ValueError when assigning to y[i]. Drop the size
argument so it returns a scalar on all NumPy versions.
Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>1 parent 3ec4814 commit 4259823
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
| 317 | + | |
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
| |||
0 commit comments