Commit dc121f25 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

MultiflipMCMCState: add pmovelabel default variable

parent 7816cec9
...@@ -199,9 +199,9 @@ class MultiflipMCMCState(ABC): ...@@ -199,9 +199,9 @@ class MultiflipMCMCState(ABC):
@mcmc_sweep_wrap @mcmc_sweep_wrap
def multiflip_mcmc_sweep(self, beta=1., c=.5, psingle=None, psplit=1, def multiflip_mcmc_sweep(self, beta=1., c=.5, psingle=None, psplit=1,
pmerge=1, pmergesplit=1, d=0.01, gibbs_sweeps=10, pmerge=1, pmergesplit=1, pmovelabel=0, d=0.01,
niter=1, entropy_args={}, accept_stats=None, gibbs_sweeps=10, niter=1, entropy_args={},
verbose=False, **kwargs): accept_stats=None, verbose=False, **kwargs):
r"""Perform ``niter`` sweeps of a Metropolis-Hastings acceptance-rejection MCMC r"""Perform ``niter`` sweeps of a Metropolis-Hastings acceptance-rejection MCMC
with multiple simultaneous moves (i.e. merges and splits) to sample with multiple simultaneous moves (i.e. merges and splits) to sample
network partitions. network partitions.
...@@ -223,6 +223,8 @@ class MultiflipMCMCState(ABC): ...@@ -223,6 +223,8 @@ class MultiflipMCMCState(ABC):
Relative probability of proposing a group split. Relative probability of proposing a group split.
pmergesplit : ``float`` (optional, default: ``1``) pmergesplit : ``float`` (optional, default: ``1``)
Relative probability of proposing a marge-split move. 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``) d : ``float`` (optional, default: ``1``)
Probability of selecting a new (i.e. empty) group for a given Probability of selecting a new (i.e. empty) group for a given
single-node move. single-node move.
......
Supports Markdown
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