def get_score_func(cfg, cv="crossval_score"):
    func = dynamic_import(cfg[cv]["funcMetric"][0])
    kwargs = cfg[cv]["funcMetric"][1]
    return func, kwargs
Import score function and kwargs from the CV configuration.
dataset/ETHPy150Open BenoitDamota/mempamal/mempamal/dynamic.py/get_score_func