You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Move get_free_parameters to minimizers and remove get_fit_parameters from ModelBase #334
changed the title [-]Move minimizers to `get_free_parameters` and remove `get_fit_parameters` from `ModelBase`[/-][+]Move `get_free_parameters` to minimizers and remove `get_fit_parameters` from `ModelBase`[/+]on Oct 26, 2026
0: Delete get_free_parameters alias. No alternatives
1a: ModelBase loses get_fit_parameters, and EngineBase filters out fixed parameters itself from the model parameters passed. The fit state (free/fitted) becomes a fitting thing not a model concept.
1b: We keep get_fit_parameters on the model, and make the engine call it instead of the alias.
1c: The engine should not discover parameters from the model at all. The caller hands the Fitter an explicit list of parameters to vary. This way ModelBase loses get_fit_parameters entirely. This means the Fitter's signature is changed to fitter = Fitter(model, fn, params=[p1, p2])
Wait, why are you making this so complicated? All we have to do is change the 1 line in the fitting engines where we currently call get_fit_parameters and replace that with get_free_parameters.
Then we can safely remove the get_fit_parameters alias from the ModelBase class.
Activity
[-]Move minimizers to `get_free_parameters` and remove `get_fit_parameters` from `ModelBase`[/-][+]Move `get_free_parameters` to minimizers and remove `get_fit_parameters` from `ModelBase`[/+]rozyczko commentedon Oct 26, 2026
0: Delete
get_free_parametersalias. No alternatives1a:
ModelBaselosesget_fit_parameters, andEngineBasefilters out fixed parameters itself from the model parameters passed. The fit state (free/fitted) becomes a fitting thing not a model concept.1b: We keep
get_fit_parameterson the model, and make the engine call it instead of the alias.1c: The engine should not discover parameters from the model at all. The caller hands the Fitter an explicit list of parameters to vary. This way
ModelBaselosesget_fit_parametersentirely. This means the Fitter's signature is changed tofitter = Fitter(model, fn, params=[p1, p2])damskii9992 commentedon Oct 27, 2026
Wait, why are you making this so complicated? All we have to do is change the 1 line in the fitting engines where we currently call
get_fit_parametersand replace that withget_free_parameters.Then we can safely remove the
get_fit_parametersalias from theModelBaseclass.Merge pull request #346 from easyscience/334-remove-alias