R/R6Class-BipartiteSBM_fit.R
BipartiteSBM_fit.RdR6 Class definition of an Bipartite SBM fit
R6 Class definition of an Bipartite SBM fit
This class is designed to give a representation and adjust an LBM fitted with blockmodels.
sbm::SBM -> sbm::BipartiteSBM -> BipartiteSBM_fit
loglikdouble: approximation of the log-likelihood (variational lower bound) reached
ICLdouble: value of the integrated classification log-likelihood
penaltydouble, value of the penalty term in ICL
entropydouble, value of the entropy due to the clustering distribution
storedModelsdata.frame of all models fitted (and stored) during the optimization
new()constructor for a Bipartite SBM fit
BipartiteSBM_fit$new(
incidenceMatrix,
model,
dimLabels = c(row = "row", col = "col"),
covarList = list()
)optimize()function to perform optimization
BipartiteSBM_fit$optimize(estimOptions = list())setModel()method to select a specific model among the ones fitted during the optimization. Fields of the current SBM_fit will be updated accordingly.
reorder()permute group labels by order of decreasing probability