(self, total_loss)
return {
            'precision': precision,
            'recall': recall,
            'F1': f1
        }
Returns: A dict containing the following:
            precision: Tag precision
            recall: Tag recall
            F1: Tag F1
Returns: A dict containing the following:
            precision: Tag precision
            recall: Tag recall
            F1: Tag F1
Returns : A dict containing the following : precision : Tag precision recall : Tag recall F1 : Tag F1
def results(self, total_loss):
        """
        Returns: A dict containing the following:
            precision: Tag precision
            recall: Tag recall
            F1: Tag F1
        """
        precision, recall, f1 = 0, 0, 0
        if self.correct_seg_count > 0:
            precision = self.correct_seg_count / self.pred_seg_count
            recall = self.correct_seg_count / self.total_seg_count
            f1 = 2 * precision * recall / (precision + recall)

        return {
            'precision': precision,
            'recall': recall,
            'F1': f1
        }
def results ( self , total_loss ) : precision , recall , f1 = 0 , 0 , 0 if self . correct_seg_count > 0 : precision = self . correct_seg_count / self . pred_seg_count recall = self . correct_seg_count / self . total_seg_count f1 = 2 * precision * recall / ( precision + recall ) return { 'precision' : precision , 'recall' : recall , 'F1' : f1 }