Repository navigation
Commit 593d8dc
fix: bernoulli_loader honors max_prob kwarg (#743)
bernoulli_loader read kwargs.get("dt") instead of kwargs.get("max_prob").
Since dt is a named parameter it never lands in **kwargs, so max_prob was
silently ignored and the spike rate stayed at 1.0 regardless of the argument.
Adds test_bernoulli_loader_max_prob, which asserts the empirical spike rate
tracks max_prob (the existing test only checked output shape, so the bug went
undetected). Fix mirrors PR #743.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 406cce3 commit 593d8dc
2 files changed
Lines changed: 24 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
40 | 63 | | |
41 | 64 | | |
42 | 65 | | |
| |||
0 commit comments