Commit d3054de6 authored by Tiago Peixoto's avatar Tiago Peixoto

Fix issue with UncertainBlockState.__init__()

parent deafb2f7
......@@ -323,8 +323,7 @@ class UncertainBlockState(UncertainBaseState):
self.p = (q.fa.sum() + (self.M - g.num_edges()) * q_default) / self.M
self.q = self.g.new_ep("double", vals=log(q.fa) - log1p(-q.fa))
if not self.forward:
self.q.fa -= log(self.p) - log1p(-self.p)
self.q.fa -= log(self.p) - log1p(-self.p)
if q_default > 0:
self.q_default = log(q_default) - log1p(q_default)
self.q_default -= log(self.p) - log1p(-self.p)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment