class_docstr: 可用于监控某个数值，并通过 :meth:`is_better_results` 等接口检测结果是否变得更好。
  
  :param monitor: 监控的 metric 值：
  
      * 为 ``None``
       将尝试使用 :class:`~fastNLP.core.controllers.Trainer` 中设置 `monitor` 值（如果有设置）；
      * 为 ``str``
       尝试直接使用该名称从 ``evaluation`` 结果中寻找，如果在 ``evaluation`` 结果中没有找到完全一致的名称，将
       使用 最长公共字符串算法 从 ``evaluation`` 结果中找到最匹配的那个作为 ``monitor`` ；
      * 为 :class:`Callable`
       接受参数为 ``evaluation`` 的结果(字典类型)，返回一个 ``float`` 值作为 ``monitor`` 的结果，如果当前结果中没有相关
       的 ``monitor`` 值请返回 ``None`` ；
  :param larger_better: monitor 是否为越大越好；
docstr: 传入的两个值中，是否 ``monitor_value1`` 的结果更好。
  
  :param monitor_value1:
  :param monitor_value2:
  :return:
docstr_tok: ["\u4f20\u5165\u7684\u4e24\u4e2a\u503c\u4e2d\uff0c\u662f\u5426","``","monitor_value1","``","\u7684\u7ed3\u679c\u66f4\u597d\u3002",":","param","monitor_value1",":",":","param","monitor_value2",":",":","return",":"]
code: def is_former_monitor_value_better(
      self, monitor_value1, monitor_value2
  ):
      """
      传入的两个值中，是否 ``monitor_value1`` 的结果更好。
  
      :param monitor_value1:
      :param monitor_value2:
      :return:
      """
      if monitor_value1 is None and monitor_value2 is None:
          return True
      if monitor_value1 is None:
          return False
      if monitor_value2 is None:
          return True
      better = False
      if (self.larger_better and monitor_value1 > monitor_value2) or (
          not self.larger_better and monitor_value1 < monitor_value2
      ):
          better = True
      return better
  
imports: from typing import Dict, Union, Any
  from abc import ABC
  import functools
  from fastNLP.core.utils import apply_to_collection
  from fastNLP.core.callbacks import Callback
  from fastNLP.core.callbacks.utils import _get_monitor_value
  from fastNLP.core.log import logger
  from fastNLP.core.utils.utils import _check_valid_parameters_number
label_desc: Use image node_id 7 for calling the ResultsMonitor obj's underlying member method code with example usage: obj.is_former_monitor_value_better(monitor_value1, monitor_value2) and returns: better, True, False, True