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
d2493cde
Commit
d2493cde
authored
May 21, 2022
by
Tiago Peixoto
Browse files
Fix B_max/B_min behavior for NestedBlockState.multilevel_mcmc_sweep()
parent
bafec6e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/inference/nested_blockmodel.py
View file @
d2493cde
...
...
@@ -543,8 +543,11 @@ class NestedBlockState(object):
else
:
args
=
dict
(
kwargs
,
entropy_args
=
eargs
,
c
=
c
[
l
])
if
l
>
0
and
"beta_dl"
in
entropy_args
:
args
=
dict
(
args
,
beta
=
args
.
get
(
"beta"
,
1.
)
*
entropy_args
[
"beta_dl"
])
if
l
>
0
:
if
"beta_dl"
in
entropy_args
:
args
=
dict
(
args
,
beta
=
args
.
get
(
"beta"
,
1.
)
*
entropy_args
[
"beta_dl"
])
for
p
in
[
"B_max"
,
"B_min"
,
"b_max"
,
"b_min"
]:
args
.
pop
(
p
,
None
)
yield
l
,
self
.
levels
[
l
],
args
...
...
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