

def suggest(self, history, searchspace):
    if (self.param_grid is None):
        if (not all((isinstance(v, EnumVariable) for v in searchspace))):
            raise RuntimeError('GridSearchStrategy is defined only for all-enum search space')
        self.param_grid = ParameterGrid(dict(((v.name, v.choices) for v in searchspace)))
    self.current += 1
    return self.param_grid[(self.current % len(v.param_grid))]

dataset/ETHPy150Open msmbuilder/osprey/osprey/strategies.py GridSearch.suggest/VarMisuse@99/132 `self`->`v`