MinuitMinimizer#
- class jetset.minimizer.MinuitMinimizer(model, add_simplex=True, conf_dict={'tol': 0.1})[source]#
Bases:
Minimizeriminuit-based backend for JetSeT fits.
Notes
Builds a Minuit function from free model parameters, optionally runs a simplex pre-step, then executes
migradand extracts fit values and covariance information.Methods Summary
chisq_func(*p)Chisq func.
contour(par_1, par_2[, bound, bins, ...])Contour.
draw_contour(par_1, par_2[, bound, levels])Draw contour.
draw_mncontour(par_1, par_2[, bound, levels])Draw mncontour.
draw_mnprofile(par[, bound])draw_profile(par[, bound])Draw profile.
minos_errors([par])Minos errors.
mncontour(par_1, par_2[, bound, bins, ...])Mncontour.
mnprofile(par[, bound, subtract_min])profile(par[, bound, subtract_min])Profile.
Methods Documentation
- chisq_func(*p)[source]#
Chisq func.
- Parameters:
*p (paramters) – target parameters
- Returns:
Computed value.
- Return type:
object
- contour(par_1, par_2, bound=2, bins=20, subtract_min=True)[source]#
Contour.
- Parameters:
par_1 (object) – First parameter object/name.
par_2 (object) – Second parameter object/name.
bound (int, optional) – Absolute parameter-bound span.
bins (int, optional) – Number of bins used for histograms/grids.
subtract_min (bool, optional) – Minimum value for subtract.
- Returns:
Computed value.
- Return type:
object
- draw_contour(par_1, par_2, bound=2, levels=array([0, 1, 2, 3, 4]))[source]#
Draw contour.
- Parameters:
par_1 (object) – First parameter object/name.
par_2 (object) – Second parameter object/name.
bound (int, optional) – Absolute parameter-bound span.
levels (object, optional) – Contour levels for corner plots.
- Returns:
Computed value.
- Return type:
object
- draw_mncontour(par_1, par_2, bound=2, levels=array([0, 1, 2, 3, 4]))[source]#
Draw mncontour.
- Parameters:
par_1 (object) – First parameter object/name.
par_2 (object) – Second parameter object/name.
bound (int, optional) – Absolute parameter-bound span.
levels (object, optional) – Contour levels for corner plots.
- Returns:
Computed value.
- Return type:
object
- draw_profile(par, bound=2)[source]#
Draw profile.
- Parameters:
par (object) – Parameter object or parameter name.
bound (int, optional) – Absolute parameter-bound span.
- Returns:
Computed value.
- Return type:
object
- minos_errors(par=None)[source]#
Minos errors.
- Parameters:
par (object, optional) – Parameter object or parameter name.
- mncontour(par_1, par_2, bound=2, bins=20, subtract_min=True)[source]#
Mncontour.
- Parameters:
par_1 (object) – First parameter object/name.
par_2 (object) – Second parameter object/name.
bound (int, optional) – Absolute parameter-bound span.
bins (int, optional) – Number of bins used for histograms/grids.
subtract_min (bool, optional) – Minimum value for subtract.
- Returns:
Computed value.
- Return type:
object