parameters: (parameter_grid)
return_statement: return plist
docstring: Creates a list of parameters given a parameter grid.
  
          Args:
              parameter_grid (dict): Dictionary mapping hyperparameter names 
                                     lists of possible values.
  
          Example:
              ::
  
                  {'parameter_a': [aValue1, aValue2, ...],
                   'parameter_b': [bValue1, bValue2, ...],
                   ...}
  
          Returns:
              list[sherpa.core.Parameter]: list of parameter ranges for SHERPA.
docstring_summary: Creates a list of parameters given a parameter grid.
docstring_tokens: Creates a list of parameters given a parameter grid .
function: def grid(parameter_grid):
          """
          Creates a list of parameters given a parameter grid.
  
          Args:
              parameter_grid (dict): Dictionary mapping hyperparameter names 
                                     lists of possible values.
  
          Example:
              ::
  
                  {'parameter_a': [aValue1, aValue2, ...],
                   'parameter_b': [bValue1, bValue2, ...],
                   ...}
  
          Returns:
              list[sherpa.core.Parameter]: list of parameter ranges for SHERPA.
          """
          plist = []
          for pname, prange in parameter_grid.items():
              p = Parameter.from_dict({'name': pname,
                                       'type': 'choice',
                                       'range': prange})
              plist.append(p)
          return plist
function_tokens: def grid ( parameter_grid ) : plist = [ ] for pname , prange in parameter_grid . items ( ) : p = Parameter . from_dict ( { 'name' : pname , 'type' : 'choice' , 'range' : prange } ) plist . append ( p ) return plist