Skip to content

Commit d428606

Browse files
committed
MISC: update comment in source
1 parent edc5484 commit d428606

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sklearn/grid_search.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,8 @@ class ParameterGrid(object):
7474

7575
def __init__(self, param_grid):
7676
if isinstance(param_grid, Mapping):
77-
# wrap dictionary in a singleton list
78-
# XXX Why? The behavior when passing a list is undocumented,
79-
# but not doing this breaks one of the tests.
77+
# wrap dictionary in a singleton list to support either dict
78+
# or list of dicts
8079
param_grid = [param_grid]
8180
self.param_grid = param_grid
8281

0 commit comments

Comments
 (0)