parameters: (self, covariance)
docstring: Saves the covariance and precision estimates
  
          Storage is done accordingly to `self.store_precision`.
          Precision stored only if invertible.
  
          Parameters
          ----------
          covariance : 2D ndarray, shape (n_features, n_features)
              Estimated covariance matrix to be stored, and from which precision
              is computed.
docstring_summary: Saves the covariance and precision estimates
docstring_tokens: Saves the covariance and precision estimates
function: def _set_covariance(self, covariance):
          """Saves the covariance and precision estimates
  
          Storage is done accordingly to `self.store_precision`.
          Precision stored only if invertible.
  
          Parameters
          ----------
          covariance : 2D ndarray, shape (n_features, n_features)
              Estimated covariance matrix to be stored, and from which precision
              is computed.
  
          """
          covariance = check_array(covariance)
          # set covariance
          self.covariance_ = covariance
          # set precision
          if self.store_precision:
              self.precision_ = linalg.pinvh(covariance)
          else:
              self.precision_ = None
function_tokens: def _set_covariance ( self , covariance ) : covariance = check_array ( covariance ) # set covariance self . covariance_ = covariance # set precision if self . store_precision : self . precision_ = linalg . pinvh ( covariance ) else : self . precision_ = None