class_docstr: This code is private in scikit-learn 0.24, so it is copied here.
class_docstr_tok: ["This","code","is","private","in","scikit-learn","0.24",",","so","it","is","copied","here","."]
code: def __init__(self, score_func, sign, kwargs):
      self._kwargs = kwargs
      self._score_func = score_func
      self._sign = sign
  
file_path: greykite/greykite/sklearn/sklearn_scorer.py
imports: import warnings
  from functools import partial
  import numpy
  from greykite.common.constants import PREDICTED_COL
label_desc: Use image node_id 1 to create a new _BaseScorer object  with example: obj = _BaseScorer(score_func, sign, kwargs)