Description Usage Arguments Details Value
This closure returns a function which calculates the loss for the given segment of the data.
1 2 3 | SegmentLoss(n_obs, lambda, penalize_diagonal = FALSE, standardize = TRUE,
threshold = 1e-07, method = c("nodewise_regression", "summed_regression",
"ratio_regression", "glasso"), ...)
|
n_obs |
Total number of observations |
lambda |
Positive numeric value. This is the regularization parameter in the single Lasso fits. This value is ignored if FUN is not NULL. |
penalize_diagonal |
Boolean, should the diagonal elements of the precision matrix be penalized by λ? This value is ignored if FUN is not NULL. |
standardize |
Boolean. If TRUE the penalty parameter λ will be adjusted for every dimension in the single Lasso fits according to the standard deviation in the data. |
threshold |
The threshold for halting the iteration in
|
method |
Which estimator should be used? Possible choices are
This value is ignored if |
... |
Further arguments supplied to the select method. |
Depending on the desired method and the tuning parameters a different loss function will be parametrized and returned. If method nodewise_regression is selected, the additional argument node must be supplied to determine on which node (dimension) it should be performed.
A parametrized loss function
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.