class_docstr: :class:`AbstractMetric` is the base object of all metrics. If you want to
      implement a metric, you should inherit this class.
  
  Args:
      config (Config): the config of evaluator.
class_docstr_tok: [":","class",":","`","AbstractMetric","`","is","the","base","object","of","all","metrics",".","If","you","want","to","implement","a","metric",",","you","should","inherit","this","class",".","Args",":","config","(","Config",")",":","the","config","of","evaluator","."]
code: def __init__(self, config):
      self.decimal_place = config["metric_decimal_place"]
  
file_path: RecBole/recbole/evaluator/base_metric.py
imports: import torch
  from recbole.utils import EvaluatorType
label_desc: Use image node_id 1 to create a new AbstractMetric object from inherited base classes: object with example: obj = AbstractMetric(config)