original_docstring: Calculate Ridge component of the cost
  
          This method returns the l2 norm error of the weighted wavelet
          coefficients
  
          Returns
          -------
          float sparsity cost component
  
          
docstring: Calculate Ridge component of the cost
  This method returns the l2 norm error of the weighted wavelet
  coefficients
  
  Returns
  
  float sparsity cost component
docstring_tokens: Calculate Ridge component of the cost This method returns the l2 norm error of the weighted wavelet coefficients Returns float sparsity cost component
code: def _cost_method(self, *args, **kwargs):
          """Calculate Ridge component of the cost
  
          This method returns the l2 norm error of the weighted wavelet
          coefficients
  
          Returns
          -------
          float sparsity cost component
  
          """
  
          cost_val = np.sum(np.abs(self.alpha * self._linear.op(args[0])**2) +
                            np.abs(self.beta * self._linear.op(args[0])))
  
          if 'verbose' in kwargs and kwargs['verbose']:
              print(' - ELASTIC NET (X):', cost_val)
  
          return cost_val
code_tokens: def _cost_method ( self , * args , ** kwargs ) : cost_val = np . sum ( np . abs ( self . alpha * self . _linear . op ( args [ 0 ] ) ** 2 ) + np . abs ( self . beta * self . _linear . op ( args [ 0 ] ) ) ) if 'verbose' in kwargs and kwargs [ 'verbose' ] : print ( ' - ELASTIC NET (X):' , cost_val ) return cost_val
short_docstring: Calculate Ridge component of the cost
  This method returns the l2 norm error of the weighted wavelet
  coefficients
short_docstring_tokens: Calculate Ridge component of the cost This method returns the l2 norm error of the weighted wavelet coefficients
comment: """Calculate Ridge component of the cost
  
          This method returns the l2 norm error of the weighted wavelet
          coefficients
  
          Returns
          -------
          float sparsity cost component
  
          """