Nothing
S <- function(x, t) sign(x) * max((abs(x) - t), 0)
threshold.galasso.gaussian <- function(z, L1)
{
normz <- sqrt(sum(z ^ 2))
S(normz, L1) * (z / normz)
}
threshold.galasso.binomial <- function(z, L1)
{
normz <- sqrt(sum(z ^ 2))
S(normz, L1) * 4 * (z / normz)
}
threshold.saenet <- function(z, z2, L1, L2)
{
S(z, L1) / (z2 + 2 * L2)
}
# Overcomes a technical limitation of R that drops almost all attributes from
# objects when subsetted using `[`
subset_scaled_matrix <- function(x, rows)
{
.x <- x[rows, , drop = F]
attr(.x, "scaled:center") <- attr(x, "scaled:center")
attr(.x, "scaled:scale") <- attr(x, "scaled:scale")
.x
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.