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
a6340293
Commit
a6340293
authored
May 19, 2016
by
Tiago Peixoto
Browse files
Fix bug in BlockModel.entropy() with test=True
parent
bf1e07b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/inference/blockmodel.py
View file @
a6340293
...
...
@@ -569,7 +569,7 @@ class BlockState(object):
if
callback
is
not
None
:
S
+=
callback
(
self
)
if
_bm_test
()
and
extract_arg
(
kwargs
,
"test"
,
True
):
if
extract_arg
(
kwargs
,
"test"
,
True
)
and
_bm_test
()
:
assert
not
isnan
(
S
)
and
not
isinf
(
S
),
\
"invalid entropy %g (%s) "
%
(
S
,
str
(
args
))
...
...
Write
Preview
Supports
Markdown
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