parameters: (self)
return_statement: return self.sqr_mtx_res
docstring: Computes the similarity matrix.
  
           Returns:
               numpy.ndarray. The similarity matrix.
  
           Raises:
              RuntimeError: If the update method is not called first, an error will be reported.
docstring_summary: Computes the similarity matrix.
docstring_tokens: Computes the similarity matrix .
function: def eval(self):
          """
           Computes the similarity matrix.
  
           Returns:
               numpy.ndarray. The similarity matrix.
  
           Raises:
              RuntimeError: If the update method is not called first, an error will be reported.
          """
          if not self._is_update:
              raise RuntimeError("Please call the 'update' method before calling 'eval' method.")
  
          if self.zero_diagonal:
              np.fill_diagonal(self.sqr_mtx_res, 0)
  
          if self.reduction == 'mean':
              self.sqr_mtx_res = np.mean(self.sqr_mtx_res, axis=-1)
  
          if self.reduction == 'sum':
              self.sqr_mtx_res = np.sum(self.sqr_mtx_res, axis=-1)
  
          return self.sqr_mtx_res
function_tokens: def eval ( self ) : if not self . _is_update : raise RuntimeError ( "Please call the 'update' method before calling 'eval' method." ) if self . zero_diagonal : np . fill_diagonal ( self . sqr_mtx_res , 0 ) if self . reduction == 'mean' : self . sqr_mtx_res = np . mean ( self . sqr_mtx_res , axis = - 1 ) if self . reduction == 'sum' : self . sqr_mtx_res = np . sum ( self . sqr_mtx_res , axis = - 1 ) return self . sqr_mtx_res