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: from abc import ABCMeta, abstractmethod
  import warnings
  import numpy
  from .None import r2_score, median_absolute_error, mean_absolute_error, mean_squared_error, accuracy_score, f1_score, roc_auc_score, average_precision_score, precision_score, recall_score, log_loss
  from .cluster import adjusted_rand_score
  from ..utils.multiclass import type_of_target
  from ..externals import six
  from ..base import is_regressor
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)