(self, sqrt=True, shrinkage_strategy='diagonal', shrinkage_coef=0.5)
Construct.
Construct.
Construct .
def __init__(self, sqrt=True, shrinkage_strategy='diagonal', shrinkage_coef=0.5):
        """Construct."""
        super().__init__()

        self.sqrt = sqrt

        if shrinkage_strategy is not None:
            if shrinkage_strategy not in {'diagonal', 'identity', 'scaled_identity'}:
                raise ValueError('Unrecognized shrinkage strategy {}'.format(shrinkage_strategy))

        self.shrinkage_strategy = shrinkage_strategy
        self.shrinkage_coef = shrinkage_coef
def __init__ ( self , sqrt = True , shrinkage_strategy = 'diagonal' , shrinkage_coef = 0.5 ) : super ( ) . __init__ ( ) self . sqrt = sqrt if shrinkage_strategy is not None : if shrinkage_strategy not in { 'diagonal' , 'identity' , 'scaled_identity' } : raise ValueError ( 'Unrecognized shrinkage strategy {}' . format ( shrinkage_strategy ) ) self . shrinkage_strategy = shrinkage_strategy self . shrinkage_coef = shrinkage_coef