parameters: (self)
docstring: Get the current evaluation result.
  
          Returns
          -------
          name : str
             Name of the metric.
          value : float
             Value of the evaluation.
docstring_summary: Get the current evaluation result.
docstring_tokens: Get the current evaluation result .
function: def get(self):
          """Get the current evaluation result.
  
          Returns
          -------
          name : str
             Name of the metric.
          value : float
             Value of the evaluation.
          """
          self._update()  # update metric at this time
          if self.num is None:
              if self.num_inst == 0:
                  return (self.name, float('nan'))
              else:
                  return (self.name, self.sum_metric / self.num_inst)
          else:
              names = ['%s'%(self.name[i]) for i in range(self.num)]
              values = [x / y if y != 0 else float('nan') \
                  for x, y in zip(self.sum_metric, self.num_inst)]
              return (names, values)
function_tokens: def get ( self ) : self . _update ( ) # update metric at this time if self . num is None : if self . num_inst == 0 : return ( self . name , float ( 'nan' ) ) else : return ( self . name , self . sum_metric / self . num_inst ) else : names = [ '%s' % ( self . name [ i ] ) for i in range ( self . num ) ] values = [ x / y if y != 0 else float ( 'nan' ) for x , y in zip ( self . sum_metric , self . num_inst ) ] return ( names , values )