scikit-hep / pyhf

pure-Python HistFactory implementation with tensors and autodiff
https://pyhf.readthedocs.io/
Apache License 2.0
279 stars 83 forks source link

simplify optimizers #606

Open lukasheinrich opened 4 years ago

lukasheinrich commented 4 years ago

Description

it's probably a good idea to constrain our optimizers to the sole problem of doing unconstrained optimization. a possible API could be

objective = pyhf.create_objective(model, fitconfig)                                                                                                                                                           
bestfit = pyhf.optim.optimize(objective)
matthewfeickert commented 4 years ago

@lukasheinrich When we talked today you had a bit of a vision for what would need to get done to have a proper Infer module. Can you also comment here a bit and give a brief "Road to Infer"?

kratsg commented 4 years ago

https://iminuit.readthedocs.io/en/latest/reference.html#iminuit.minimize