whether the network is weighted. If TRUE, only sum of squared errors
are computed. If FALSE, then treat the network as
binary and AUC will be computed along with SSE.
mode
Selectign the mode of "directed" or "undirected" for cross-validation.
AUC is believed to be more accurate in
many simulations for binary networks. But the computation of AUC is much
slower than SSE, even slower than matrix completion steps.
Note that we do not have to assume the true model is low rank. This
function simply finds a best low-rank approximation to the true model.
References
T. Li, E. Levina, and J. Zhu. Network cross-validation by edge sampling. Biometrika, 107(2), pp.257-276, 2020.