def _update_metrics_to_log(self) -> None:
    debug_log_level = (logging.getLogger('rasa').level == logging.DEBUG)
    if self.config[MASKED_LM]:
        self.metrics_to_log.append('m_acc')
        if debug_log_level:
            self.metrics_to_log.append('m_loss')
    if self.config[INTENT_CLASSIFICATION]:
        self.metrics_to_log.append('i_acc')
        if debug_log_level:
            self.metrics_to_log.append('i_loss')
    if self.config[ENTITY_RECOGNITION]:
        for tag_spec in self._entity_tag_specs:
            if (tag_spec.num_tags != 0):
                name = tag_spec.tag_name
                self.metrics_to_log.append(f'{name[0]}_f1')
                if debug_log_level:
                    self.metrics_to_log.append(f'{name[0]}_loss')
    self._log_metric_info()
def _update_metrics_to_log(self) -> None:
    debug_log_level = (logging.getLogger('rasa').level == logging.DEBUG)
    if self.config[MASKED_LM]:
        self.metrics_to_log.append('m_acc')
        if debug_log_level:
            self.metrics_to_log.append('m_loss')
    if self.config[INTENT_CLASSIFICATION]:
        self.metrics_to_log.append('i_acc')
        if debug_log_level:
            self.metrics_to_log.append('i_loss')
    if self.config[ENTITY_RECOGNITION]:
        for tag_spec in self._entity_tag_specs:
            if (tag_spec.num_tags != 0):
                name = tag_spec.tag_name
                self.metrics_to_log.append(f'{name[0]}_f1')
                if debug_log_level:
                    self.metrics_to_log.append(f'{name[0]}_loss')
    self._log_metric_info()