def __init__(self, degree, name='basis'):
        """
        Basis class for computing the design matrix phi(X). The weights are held
        in the regularizer, so that this only represents the design matrix.
        """
        super(Basis, self).__init__(name=name)
        self.degree = degree
        # One way of setting up the caching is by the following, the
        # other is by the decorator.
        self._basis = Cacher(self.basis, self.degree+1, [], [])
def __init__ ( self , degree , name = 'basis' ) : super ( Basis , self ) . __init__ ( name = name ) self . degree = degree self . _basis = Cacher ( self . basis , self . degree + 1 , [ ] , [ ] )
Basis class for computing the design matrix phi(X). The weights are held
        in the regularizer, so that this only represents the design matrix.