tracts.driver_utils.parse_start_params#
- parse_start_params(start_param_bounds, repetitions=1, seed=None, model=None)#
Produces a 1-dimensional array of starting parameters for optimization in physical units, for every parameter in base_model_parameters.
- Parameters:
start_param_bounds (An object containing attributes corresponding to each parameter in model.model_base_parameters, where the value of each attribute is either a single number (if the starting value for that parameter should be fixed) or a string of the form "min:max" specifying the range from which to sample starting values for that parameter. The parameters specified in start_param_bounds must match those in model.model_base_parameters, and an error will be raised if any parameters are missing or if any extra parameters are included.)
repetitions (
int)seed (
float)model (
ParametrizedDemography)
- Returns:
list[np.ndarray]
- Return type:
A list of arrays of starting parameters in physical units, where each array corresponds to a set of starting parameters for one repetition of the optimization. The parameters are ordered according to their order in model.model_base_parameters.