Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
60e235e0
Commit
60e235e0
authored
Mar 12, 2018
by
Tiago Peixoto
Browse files
inference.blockmodel: Fix issue with MixedMeasuredBlockState
parent
e703c29c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/inference/uncertain_blockmodel.py
View file @
60e235e0
...
...
@@ -495,7 +495,7 @@ class MixedMeasuredBlockState(UncertainBaseState):
dra
,
drb
=
self
.
transform
(
self
.
n_default
,
self
.
x_default
)
self
.
q_default
=
log
(
dra
)
-
log
(
drb
)
self
.
S_const
=
(
self
.
M
-
self
.
g
.
num_edges
())
*
log
(
drb
)
+
log
(
d
rb
).
sum
()
self
.
S_const
=
(
self
.
M
-
self
.
g
.
num_edges
())
*
log
(
drb
)
+
log
(
rb
).
sum
()
if
self
.
_state
is
not
None
:
self
.
_state
.
set_q_default
(
self
.
q_default
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment