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 afeb7ee commit 0a4b85bCopy full SHA for 0a4b85b
sklearn/grid_search.py
@@ -13,7 +13,7 @@
13
from abc import ABCMeta, abstractmethod
14
from collections import Mapping, namedtuple, Sized
15
from functools import partial, reduce
16
-from itertools import product, repeat
+from itertools import product
17
import operator
18
import warnings
19
@@ -193,7 +193,7 @@ def __iter__(self):
193
else:
194
# Always sort the keys of a dictionary, for reproducibility
195
items = sorted(self.param_distributions.items())
196
- for _ in repeat(None, self.n_iter):
+ for _ in six.moves.range(self.n_iter):
197
params = dict()
198
for k, v in items:
199
if hasattr(v, "rvs"):
0 commit comments