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
dc121f25
Commit
dc121f25
authored
Feb 06, 2022
by
Tiago Peixoto
Browse files
MultiflipMCMCState: add pmovelabel default variable
parent
7816cec9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/inference/base_states.py
View file @
dc121f25
...
...
@@ -199,9 +199,9 @@ class MultiflipMCMCState(ABC):
@
mcmc_sweep_wrap
def
multiflip_mcmc_sweep
(
self
,
beta
=
1.
,
c
=
.
5
,
psingle
=
None
,
psplit
=
1
,
pmerge
=
1
,
pmergesplit
=
1
,
d
=
0.01
,
gibbs_sweeps
=
10
,
niter
=
1
,
entropy_args
=
{},
accept_stats
=
None
,
verbose
=
False
,
**
kwargs
):
pmerge
=
1
,
pmergesplit
=
1
,
pmovelabel
=
0
,
d
=
0.01
,
gibbs_sweeps
=
10
,
niter
=
1
,
entropy_args
=
{},
accept_stats
=
None
,
verbose
=
False
,
**
kwargs
):
r
"""Perform ``niter`` sweeps of a Metropolis-Hastings acceptance-rejection MCMC
with multiple simultaneous moves (i.e. merges and splits) to sample
network partitions.
...
...
@@ -223,6 +223,8 @@ class MultiflipMCMCState(ABC):
Relative probability of proposing a group split.
pmergesplit : ``float`` (optional, default: ``1``)
Relative probability of proposing a marge-split move.
pmovelabel : ``float`` (optional, default: ``0``)
Relative probability of proposing a group label move.
d : ``float`` (optional, default: ``1``)
Probability of selecting a new (i.e. empty) group for a given
single-node move.
...
...
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