algorithms.cv¶
Module: algorithms.cv¶
Inheritance diagram for selectinf.algorithms.cv:
CV¶
-
class
selectinf.algorithms.cv.CV(loss, folds, lam_seq, objective_randomization=None, epsilon=None)[source]¶ Bases:
object-
__init__(loss, folds, lam_seq, objective_randomization=None, epsilon=None)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
CV_err(penalty, loss=None, residual_randomization=None, scale=None, solve_args={'min_its': 20, 'tol': 0.1})[source]¶ Computes the non-randomized CV error and the one with added residual randomization
-
choose_lambda_CVr(scale=1.0, loss=None)[source]¶ Minimizes CV error curve without randomization and the one with residual randomization
-