class_docstr: .. include:: /global.rst
  
  Please refer to |gridsearch| for more information about this algorithm.
  
  Exhaustive search over the Cartesian product of parameter tuples.
  Returns x (the tuple which maximizes f) and its score f(x).
  
  >>> s = GridSearch(x=[1,2,3], y=[-1,0,1])
  >>> best_pars, _ = s.optimize(lambda x, y: x*y)
  >>> best_pars['x']
  3
  >>> best_pars['y']
  1
class_docstr_tok: ["..","include",":",":","\/global.rst","Please","refer","to","|gridsearch|","for","more","information","about","this","algorithm",".","Exhaustive","search","over","the","Cartesian","product","of","parameter","tuples",".","Returns","x","(","the","tuple","which","maximizes","f",")","and","its","score","f","(","x",")",".",">",">",">","s","=","GridSearch","(","x=","[","1,2,3","]",",","y=","[","-1,0,1","]",")",">",">",">","best_pars",",","_","=","s.optimize","(","lambda","x",",","y",":","x","*","y",")",">",">",">","best_pars","[","'","x","'","]","3",">",">",">","best_pars","[","'","y","'","]","1"]
docstr: Returns the possible values of every parameter.
docstr_tok: ["Returns","the","possible","values","of","every","parameter","."]
code: def parameter_tuples(self):
      """Returns the possible values of every parameter."""
      return self._parameter_tuples
  
file_path: optunity/wrappers/R/inst/optunity/solvers/GridSearch.py
imports: import operator
  import itertools
  from ..functions import static_key_order
  from .solver_registry import register_solver
  from .util import Solver, _copydoc, shrink_bounds
  from .None import util
label_desc: Use image node_id 4 for calling the GridSearch obj's underlying member method code with example usage: obj.parameter_tuples() and returns: self