Returns the elastic net objective function value.
obj_function(
y,
mu,
weights,
family,
lambda,
alpha,
coefficients,
vp,
view_components,
rho
)Quantitative response variable.
Model's predictions for y.
Observation weights.
A description of the error distribution and link function to be used in the model. This is the result of a call to a family function.
A single value for the lambda hyperparameter.
The elasticnet mixing parameter, with \(0 \le \alpha \le 1\).
The model's coefficients (excluding intercept).
Penalty factors for each of the coefficients.
a list of lists containing indices of coefficients and associated covariate (view) pairs
the fusion parameter