Skip to content

Add FitSettings class #427

Closed
Closed

Description

@rozyczko

The fit configuration has no owner. It is spread over objects with different lifetimes:

  • minimizer_enum
  • tolerance
  • objective
  • engine-specific options

The app reads and writes tolerance through project_lib._fitter, builds a throwaway fitter for every run and copies the values across. Anything not copied is lost; anything edited before the lazily-created fitter exists is lost. Worse, because Minimizers.tolerance falls back to [1e-6, 5000] when there is no fitter, those two numbers are always applied to the throwaway fitter (the is not None tests at fitting.py:350-353 are never false). "Defaults" in the UI is therefore never the engine default: BUMPS lm (steps=200, ftol=1e-10) runs with 5000 steps and ftol=xtol=1e-6; BUMPS amoeba (ftol=1e-8) runs with 1e-6.

We need a container class, like FitSettings, owned by the project which will contain all the above in one place.

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] high[scope] enhancementenhancement

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions