algorithms.cv

Module: algorithms.cv

Inheritance diagram for selectinf.algorithms.cv:

digraph inheritancebe14de6efc { rankdir=LR; size="8.0, 12.0"; "algorithms.cv.CV" [URL="#selectinf.algorithms.cv.CV",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top"]; }

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

bootstrap_CVr_curve()[source]

Bootstrap of CV error curve with residual randomization

choose_lambda_CVR(scale1=None, scale2=None, loss=None)[source]

Minimizes CV error curve with additive randomization (CVR=CV+R1+R2=CV1+R2)

bootstrap_CVR_curve(scale1=None, scale2=None)[source]

Bootstrap of CVR=CV+R1+R2 and CV1=CV+R1 curves

selectinf.algorithms.cv.main()[source]