paddlenlp/metrics/glue.py
def update(self, args):
        """
        Updates the metrics states (accuracy, precision and recall), in order to
        calculate accumulated accuracy, precision and recall of all instances.

        Args:
            args (tuple of Tensor):
                the tuple returned from `compute` function
        """
        pred = args[0].numpy()
        label = args[1].numpy()
        tmp_confusion_matrix = self._multi_labels_confusion_matrix(pred, label)
        self._confusion_matrix += tmp_confusion_matrix

        Updates the metrics states (accuracy, precision and recall), in order to
        calculate accumulated accuracy, precision and recall of all instances.

        Args:
            args (tuple of Tensor):
                the tuple returned from `compute` function
        
Updates the metrics states (accuracy, precision and recall), in order to
calculate accumulated accuracy, precision and recall of all instances.
Updates the metrics states ( accuracy precision and recall ) in order to calculate accumulated accuracy precision and recall of all instances .
def update(self, args):
        pred = args[0].numpy()
        label = args[1].numpy()
        tmp_confusion_matrix = self._multi_labels_confusion_matrix(pred, label)
        self._confusion_matrix += tmp_confusion_matrix
def update ( self , args ) : pred = args [ 0 ] . numpy ( ) label = args [ 1 ] . numpy ( ) tmp_confusion_matrix = self . _multi_labels_confusion_matrix ( pred , label ) self . _confusion_matrix += tmp_confusion_matrix
Updates the metrics states (accuracy, precision and recall), in order to
calculate accumulated accuracy, precision and recall of all instances.
Updates the metrics states ( accuracy precision and recall ) in order to calculate accumulated accuracy precision and recall of all instances .
"""
        Updates the metrics states (accuracy, precision and recall), in order to
        calculate accumulated accuracy, precision and recall of all instances.

        Args:
            args (tuple of Tensor):
                the tuple returned from `compute` function
        """
self
args
the tuple returned from `compute` function
the tuple returned from ` compute ` function