threeML.minimizer.grid_minimizer module¶
-
class
threeML.minimizer.grid_minimizer.GridMinimizer(function, parameters, verbosity=1)[source]¶ Bases:
threeML.minimizer.minimization.GlobalMinimizer-
add_callback(function)[source]¶ This adds a callback function which is called after each point in the grid has been used.
- Parameters
function – a function receiving in input a tuple containing the point in the grid and the minimum of the
function reached starting from that point. The function should return nothing :return: none
-
add_parameter_to_grid(parameter, grid)[source]¶ Add a parameter to the grid
- Parameters
parameter – an instance of a parameter or a parameter path
grid – a list (or a numpy.array) with the values the parameter is supposed to take during the grid search
- Returns
None
-
valid_setup_keys= ('grid', 'second_minimization', 'callbacks')¶
-