Commit abc7292
authored
[mle] Replace np.sum with @, fix typos, and use gammaln for stable Poisson log-likelihood (#473)
* Replace np.sum with @ for vector inner products, fix typos, and improve numerical stability using scipy.special.gammaln
* Add missing import of gammaln from scipy.special
* Add self. to instance variable references.md1 parent 36c56c7 commit abc7292
1 file changed
+10
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
| 337 | + | |
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
347 | | - | |
| 347 | + | |
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
461 | | - | |
| 461 | + | |
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
| |||
868 | 868 | | |
869 | 869 | | |
870 | 870 | | |
| 871 | + | |
871 | 872 | | |
872 | | - | |
| 873 | + | |
873 | 874 | | |
874 | 875 | | |
| 876 | + | |
| 877 | + | |
875 | 878 | | |
876 | 879 | | |
877 | | - | |
878 | | - | |
| 880 | + | |
879 | 881 | | |
880 | 882 | | |
881 | 883 | | |
| 884 | + | |
882 | 885 | | |
883 | 886 | | |
884 | 887 | | |
| |||
0 commit comments