The evaluation function for Consistent Estimation of the Number of Communities via Regularized Network Embedding.
evaluation(Z.hat, Z.true, cluster.matrix.hat, cluster.matrix.true,
P.true, Theta.true, K.hat=4, K.true=4)A vector including five evaluation index. prop. 1: the estimated and actual number of communities are equal; 0: not equal.
A n * r matrix, the estimated embedding vectors corresponding to n nodes.
A n * r matrix, the true embedding vectors corresponding to n nodes.
A n * n estimated membership matrix, whose (i,j)-element is 1, if nodes i and j are estimated to belong to the same community, and 0, otherwise.
A n * n true membership matrix, whose (i,j)-element is 1, if nodes i and j belong to the same community, and 0, otherwise.
A n * n true probability matrix.
A n * n true matrix: Z.true %*% t(Z.true).
The true number of communities.
The estimated number of communities.
Mingyang Ren.