grid_search_setup(spin=None,
param_vector=None,
lower=None,
upper=None,
inc=None,
scaling_matrix=None)
| source code
|
The grid search setup function.
- Parameters:
spin (SpinContainer instance) - The spin data container.
param_vector (numpy array) - The parameter vector.
lower (array of numbers) - The lower bounds of the grid search which must be equal to the
number of parameters in the model. This optional argument is
only used when doing a grid search.
upper (array of numbers) - The upper bounds of the grid search which must be equal to the
number of parameters in the model. This optional argument is
only used when doing a grid search.
inc (array of int) - The increments for each dimension of the space for the grid
search. The number of elements in the array must equal to the
number of parameters in the model. This argument is only used
when doing a grid search.
scaling_matrix (numpy diagonal matrix) - The scaling matrix.
- Returns: (int, list of lists [int, float, float])
- A tuple of the grid size and the minimisation options. For the
minimisation options, the first dimension corresponds to the
model parameter. The second dimension is a list of the number of
increments, the lower bound, and upper bound.
|