fit_lm_regularized: Can be used to fit either kernel models or regularized linear...

Description Usage Arguments Value

View source: R/linear_regression_mcr.r

Description

Minimizes ||Y_i - X β ||^2 +alphaβ'(reg_matrix across β. Alternatively, if reg_threshold is finite, this function minimizes ||Y_i - X β ||^2 across β satisfying β'(reg_matrix)β≤reg_threshold.

Usage

1
2
fit_lm_regularized(suff_stats, alpha = NA, reg_threshold = Inf,
  tol = NA)

Arguments

suff_stats

output from get_suff_stats_kernel, or from the internal function get_suff_stats_lm. See also precompute_mcr_objects_and_functions

alpha

regularization parameter

reg_threshold

regularization threshold

tol

passed to solve_QP1QC

Value

The argmin over values of β.


aaronjfisher/mcr documentation built on Jan. 2, 2020, 4:38 p.m.