code: def __init__(self, score_func, sign, kwargs):
      self._kwargs = kwargs
      self._score_func = score_func
      self._sign = sign
      # XXX After removing the deprecated scorers (v0.20) remove the
      # XXX deprecation_msg property again and remove __call__'s body again
      self._deprecation_msg = None
  
imports: import warnings
  from abc import ABCMeta, abstractmethod
  import numpy
  from ..None import six
  from .base import is_regressor
  from .type_of_target import type_of_target
label_desc: Use image node_id 1 to create a new _BaseScorer object from inherited base classes:  with example: obj = _BaseScorer(score_func, sign, kwargs)