We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01db136 commit 6f66261Copy full SHA for 6f66261
src/pdl/pdl_distributions.py
@@ -35,7 +35,7 @@ def shrink(self) -> "Categorical[T]":
35
res[v] = (w_v + w, m_v + m)
36
else:
37
res[v] = (w, m)
38
- return Categorical([(v, w, m) for v, (w, m) in res.items()])
+ return Categorical([(v, np.log(w), m) for v, (w, m) in res.items()])
39
40
def sample(self) -> T:
41
u = rand.rand()
0 commit comments