Description Usage Arguments Details Value References Examples
The main function for bossom tree graph estimation and density estimation.
1 | blossomTree(data, lambda = NULL, refit = FALSE, verbose = TRUE)
|
data |
An |
lambda |
A sequence of positive numbers to control the regularization of the graphical lasso. |
refit |
If |
verbose |
If |
The function partitions the data matrix into two subsamples with equal size by random allocation. The first subsample is used to construct a family of blossom tree graphs and the corresponding density estimators, while the second subsample is then used to determine the optimal blossom tree by maximizing the held-out log-likelihood.
The refit graphical lasso is a two-step procedure: in the first step, a sparse inverse covariance matrix is obtained by the graphical lasso; in the second step, a Gaussian model is refit without regularization, but enforcing the sparsity pattern obtained in the first step.
loglike |
Held-out log-likelihood for a family of blossom tree density estimators with |
adj |
Adjacency matrices of a family of blossom tree graphs with |
best.loglike |
Maximum of the held-out log-likelihood. |
best.adj |
Adjacency matrix of the optimal blossom tree graph corresponding to the maximum of the held-out log-likelihood. |
Zhe Liu and John Lafferty. Blossom tree graphical models. Advances in Neural Information Processing Systems, 27:1458–1465, 2014.
1 2 3 4 5 | library(igraph)
fit <- blossomTree(data)
bt <- fit$best.adj
plot(bt)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.