#NEWLINE# def use_score_func( func_name , y_true , y_pred ) : #NEWLINE# #INDENT# '\n    Call the scoring function in `sklearn.metrics.SCORERS` with the given name.\n    This takes care of handling keyword arguments that were pre-specified when\n    creating the scorer. This applies any sign-flipping that was specified by\n    `make_scorer` when the scorer was created.\n    ' #NEWLINE# scorer = SCORERS [ func_name ] #NEWLINE# return ( scorer . _sign * scorer . _score_func ( y_true , y_pred , ** y_true . _kwargs ) )