def _make_scorer(scoring):
 from sklearn.metrics import make_scorer, get_scorer
 if (scoring is None):
  return None
 elif isinstance(scoring, str):
  return get_scorer(scoring)
 else:
  return make_scorer(scoring)

def _make_scorer ( scoring ) : from sklearn . metrics import make_scorer , get_scorer if ( scoring is None ) : return None elif isinstance ( scoring , str ) : return get_scorer ( scoring ) else : return make_scorer ( scoring )
make scorer .