parameters: (self, value, weight)
docstring: r"""
          This function takes the minibatch states (value, weight) as input,
          to accumulate and update the corresponding status of the Accuracy object. The update method is as follows:
  
          .. math::
              \\\\ \\begin{array}{l}{\\text { self. value }+=\\text { value } * \\text { weight }} \\\\ {\\text { self. weight }+=\\text { weight }}\\end{array} \\\\
  
          Args:
              value(float|numpy.array): accuracy of one minibatch.
              weight(int|float): minibatch size.
docstring_summary: r"""
          This function takes the minibatch states (value, weight) as input,
          to accumulate and update the corresponding status of the Accuracy object. The update method is as follows:
docstring_tokens: r This function takes the minibatch states ( value weight ) as input to accumulate and update the corresponding status of the Accuracy object . The update method is as follows :
function: def update(self, value, weight):
          r"""
          This function takes the minibatch states (value, weight) as input,
          to accumulate and update the corresponding status of the Accuracy object. The update method is as follows:
  
          .. math::
              \\\\ \\begin{array}{l}{\\text { self. value }+=\\text { value } * \\text { weight }} \\\\ {\\text { self. weight }+=\\text { weight }}\\end{array} \\\\
  
          Args:
              value(float|numpy.array): accuracy of one minibatch.
              weight(int|float): minibatch size.
          """
          if not _is_number_or_matrix_(value):
              raise ValueError(
                  "The 'value' must be a number(int, float) or a numpy ndarray.")
          if not _is_number_(weight):
              raise ValueError("The 'weight' must be a number(int, float).")
          if _is_number_(weight) and weight < 0:
              raise ValueError("The 'weight' can not be negative")
          self.value += value * weight
          self.weight += weight
function_tokens: def update ( self , value , weight ) : if not _is_number_or_matrix_ ( value ) : raise ValueError ( "The 'value' must be a number(int, float) or a numpy ndarray." ) if not _is_number_ ( weight ) : raise ValueError ( "The 'weight' must be a number(int, float)." ) if _is_number_ ( weight ) and weight < 0 : raise ValueError ( "The 'weight' can not be negative" ) self . value += value * weight self . weight += weight