View source: R/connected-graph-heavy-tail-admm.R
learn_regular_heavytail_graph | R Documentation |
Laplacian matrix of a connected graph with heavy-tailed data
Computes the Laplacian matrix of a graph on the basis of an observed data matrix, where we assume the data to be Student-t distributed.
learn_regular_heavytail_graph( X, heavy_type = "gaussian", nu = NULL, w0 = "naive", d = 1, rho = 1, update_rho = TRUE, maxiter = 10000, reltol = 1e-05, verbose = TRUE )
X |
an n x p data matrix, where n is the number of observations and p is the number of nodes in the graph |
heavy_type |
a string which selects the statistical distribution of the data. Valid values are "gaussian" or "student". |
nu |
the degrees of freedom of the Student-t distribution. Must be a real number greater than 2. |
w0 |
initial vector of graph weights. Either a vector of length p(p-1)/2 or a string indicating the method to compute an initial value. |
d |
the nodes' degrees. Either a vector or a single value. |
rho |
constraint relaxation hyperparameter. |
update_rho |
whether or not to update rho during the optimization. |
maxiter |
maximum number of iterations. |
reltol |
relative tolerance as a convergence criteria. |
verbose |
whether or not to show a progress bar during the iterations. |
A list containing possibly the following elements:
|
estimated Laplacian matrix |
|
estimated adjacency matrix |
|
estimated Laplacian matrix slack variable |
|
number of iterations taken to reach convergence |
|
boolean flag to indicate whether or not the optimization conv erged |
|
primal residual for the Laplacian matrix per iteration |
|
primal residual for the degree vector per iteration |
|
dual residual per iteration |
|
Lagrangian value per iteration |
|
Time taken to reach convergence |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.