#NEWLINE# def get_score_func( cfg , cv = 'crossval_score' ) : #NEWLINE# #INDENT# 'Import score function and kwargs from the CV configuration.\n\n    Parameters\n    ----------\n    cfg : dict,\n        configuration dict for cross-validation.\n\n    cv : str, optional(default="crossval_score")\n        section of the configuration dict to search for a score function.\n    ' #NEWLINE# func = dynamic_import ( cfg [ cv ] [ 'funcMetric' ] [ 0 ] ) #NEWLINE# kwargs = cfg [ cv ] [ 'funcMetric' ] [ 1 ] #NEWLINE# return ( func , kwargs )