We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edc5484 commit d428606Copy full SHA for d428606
sklearn/grid_search.py
@@ -74,9 +74,8 @@ class ParameterGrid(object):
74
75
def __init__(self, param_grid):
76
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.
+ # wrap dictionary in a singleton list to support either dict
+ # or list of dicts
80
param_grid = [param_grid]
81
self.param_grid = param_grid
82
0 commit comments