Description Usage Arguments Value References Examples
This function runs the iterative procedure necessary to compute GLP for a
given parameter lambda
, exactly as in Equation 1 in Mostafavi et al.
(2012).
1 | glp(M, y, lambda, tol = 1e-04, max_iter = 100L, verbose = 0L)
|
M |
normalized affinity matrix, as returned by |
y |
vector of labels, of length |
lambda |
GLP parameter (between 0 and 1). |
tol |
tolerance for the stopping creiterion. |
max_iter |
maximum number of iterations. |
verbose |
print every |
A vector of length N with the estimated scores.
Mostafavi, S., Goldenberg, A., & Morris, Q. (2012). Labeling nodes using three degrees of propagation. PloS one, 7(12), e51947.
1 2 3 | sim_SBM = simulate_simple_SBM(N = 2500L, p_1 = 0.2, D = 0.04, R = 0.25)
M = normalize_A(sim_SBM$A, "asym")
glp(M=M, y=sim_SBM$y, lambda=0.1, max_iter = 10L, verbose = 1L)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.