Unverified Commit 30975929 authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[python-package] fix mypy errors about cv() internals (#5725)

parent af82fc95
...@@ -501,8 +501,8 @@ def _agg_cv_result( ...@@ -501,8 +501,8 @@ def _agg_cv_result(
raw_results: List[List[Tuple[str, str, float, bool]]] raw_results: List[List[Tuple[str, str, float, bool]]]
) -> List[Tuple[str, str, float, bool, float]]: ) -> List[Tuple[str, str, float, bool, float]]:
"""Aggregate cross-validation results.""" """Aggregate cross-validation results."""
cvmap = collections.OrderedDict() cvmap: Dict[str, List[float]] = collections.OrderedDict()
metric_type = {} metric_type: Dict[str, bool] = {}
for one_result in raw_results: for one_result in raw_results:
for one_line in one_result: for one_line in one_result:
key = f"{one_line[0]} {one_line[1]}" key = f"{one_line[0]} {one_line[1]}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment