Description Usage Arguments Value Note Examples
Conjugate model sampler
1 |
currsbm |
the current state of the sampler |
edges |
an |
sbmmod |
an |
sigma |
unused |
... |
additional arguments for |
next state of currsbm
object
If using the CRP as the block model, then this is the IRM sampler of Schmidt or Morup (Schmidt, M.N. and Morup, M., 2013. Nonparametric Bayesian modeling of complex networks: An introduction. IEEE Signal Processing Magazine, 30(3), pp.110-128.)
1 2 3 4 | model <- sbmmod(crp(3), param_beta(1,1,1,1), edges_bern(), marglike=marglike_bern)
trueSBM <- model$r(100)
Edges <- redges(trueSBM, model$edge)
out <- sampler(Edges, model, 10, "conjugate")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.