(lgbm_params: Dict[str, Any])
Handling alias metrics.
Handling alias metrics.
Handling alias metrics .
def _handling_alias_metrics(lgbm_params: Dict[str, Any]) -> None:
    """Handling alias metrics."""

    if "metric" not in lgbm_params.keys():
        return

    for metric in _ALIAS_METRIC_LIST:
        metric_name = metric["metric_name"]
        alias_names = metric["alias_names"]

        for alias_name in alias_names:
            if lgbm_params["metric"] == alias_name:
                lgbm_params["metric"] = metric_name
                break
def _handling_alias_metrics ( lgbm_params : Dict [ str , Any ] ) -> None : if "metric" not in lgbm_params . keys ( ) : return for metric in _ALIAS_METRIC_LIST : metric_name = metric [ "metric_name" ] alias_names = metric [ "alias_names" ] for alias_name in alias_names : if lgbm_params [ "metric" ] == alias_name : lgbm_params [ "metric" ] = metric_name break