Description Usage Arguments Value See Also
View source: R/tree-guided_group_lasso.R
Generalize hierarchical clustering distances to compute node weights from the (response) matrix Y for a given grouping. Weights will be normalized using ComputeGroupWeights.
1 2 | ComputeWeightsFromTree(Y, groups, linkage = "complete",
distance = function(a, b) { 1 - cor(a, b) })
|
Y |
N by K matrix for every task. |
groups |
V by K matrix determining group membership: Task k in group v iff groups[v,k] == 1. |
linkage |
"complete" or "average". Linkage type used (distance measure between clusters). |
distance |
Function for computing pairwise distances between columns of Y. Default is 1-cor(a,b). |
Vector containing node weights.
TreeGuidedGroupLasso
,
ComputeGroupWeights
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.