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: 检测给定的 ``results`` 是否比上一次更好，如果本次 results 中没有找到相关的 monitor 返回 ``False``。
  
  :param results: evaluation 结果；
  :param keep_if_better: 当返回为 ``True`` 时，是否保存到 ``self.monitor_value`` 中；
  :return:
docstr_tok: ["\u68c0\u6d4b\u7ed9\u5b9a\u7684","``","results","``","\u662f\u5426\u6bd4\u4e0a\u4e00\u6b21\u66f4\u597d\uff0c\u5982\u679c\u672c\u6b21","results","\u4e2d\u6ca1\u6709\u627e\u5230\u76f8\u5173\u7684","monitor","\u8fd4\u56de","``","False","``","\u3002",":","param","results",":","evaluation","\u7ed3\u679c\uff1b",":","param","keep_if_better",":","\u5f53\u8fd4\u56de\u4e3a","``","True","``","\u65f6\uff0c\u662f\u5426\u4fdd\u5b58\u5230","``","self.monitor_value","``","\u4e2d\uff1b",":","return",":"]
code: def is_better_results(self, results, keep_if_better=True):
      """
      检测给定的 ``results`` 是否比上一次更好，如果本次 results 中没有找到相关的 monitor 返回 ``False``。
  
      :param results: evaluation 结果；
      :param keep_if_better: 当返回为 ``True`` 时，是否保存到 ``self.monitor_value`` 中；
      :return:
      """
      monitor_value = self.get_monitor_value(results)
      if monitor_value is None:
          return False
      return self.is_better_monitor_value(
          monitor_value, keep_if_better=keep_if_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 6 for calling the ResultsMonitor obj's underlying member method code with example usage: obj.is_better_results(results, keep_if_better) and returns: self, False