SBM implementation in the new version of bgms #32
Merged
MaartenMarsman merged 13 commits intoBayesian-Graphical-Modelling-Lab:mainfrom Feb 6, 2025
Merged
SBM implementation in the new version of bgms #32MaartenMarsman merged 13 commits intoBayesian-Graphical-Modelling-Lab:mainfrom
MaartenMarsman merged 13 commits intoBayesian-Graphical-Modelling-Lab:mainfrom
Conversation
… parameters and block matrices (2) we sample the number of clusters by first calculating the probability of a sampled cluster configuration using Equation 3.7 pf Miller & Harrison (2018)
…nges K_max = no_variables + 10
MaartenMarsman
requested changes
Feb 5, 2025
Collaborator
MaartenMarsman
left a comment
There was a problem hiding this comment.
Looking good Nikola. Can you make the suggested style edits, and revert the setting of the inclusion_probability? Then, I can merge it with the main branch.
| #' number of clusters. The number of clusters is derived from the | ||
| #' cardinality of the sampled \code{allocations} vector for each iteration of | ||
| #' the MCMC sampler (see \code{save = TRUE}). | ||
| #' } |
Collaborator
There was a problem hiding this comment.
Please use insertCite for the references.
Contributor
Author
There was a problem hiding this comment.
I believe I already fixed that
| allocations = summarySbm$allocations, | ||
| clusters = summarySbm$no_clusters, | ||
| arguments = arguments) | ||
| } else { |
Collaborator
There was a problem hiding this comment.
I need to check if components has names.
Contributor
Author
Contributor
Author
Hi Maarten, I think I have addressed all your comments. |
MaartenMarsman
approved these changes
Feb 6, 2025
22d3d38
into
Bayesian-Graphical-Modelling-Lab:main
6 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Additionally, I also tried fixing the saved prior inclusion probability in the arguments list of the output.