algorithms.cv_glmnet

Module: algorithms.cv_glmnet

Inheritance diagram for selectinf.algorithms.cv_glmnet:

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

This module uses glmnet to run CV as part of cv_view.

If a user attempts to import the module without rpy2 installed, it will raise an ImportError. So, this should not be in any api import.

CV_glmnet

class selectinf.algorithms.cv_glmnet.CV_glmnet(loss, loss_label)[source]

Bases: object

__init__(loss, loss_label)[source]

Initialize self. See help(type(self)) for accurate signature.

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

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