Skip to content

Move get_free_parameters to minimizers and remove get_fit_parameters from ModelBase #334

Closed

Description

@damskii9992
No description provided.

Activity

  1. added
    [scope] ⚠️ label needed
    [priority] ⚠️ label needed
    on Oct 16, 2026
  2. added
    [scope] significant
    [priority] medium
    and removed
    [scope] ⚠️ label needed
    [priority] ⚠️ label needed
    on Oct 16, 2026
  3. 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
  4. rozyczko commented on Oct 26, 2026

    @rozyczko
    Member

    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])

  5. damskii9992 commented on Oct 27, 2026

    @damskii9992
    ContributorAuthor

    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.

  6. linked a pull request that will close this issueremoved get_free_parameters #334 #346on Oct 28, 2026
  7. added a commit that references this issue on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [priority] medium[scope] significant

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions