LBHB / NEMS0

THIS VERSION OF NEMS IS NO LONGER SUPPORTED. PLEASE USE THE NEW NEMS REPOSITORY OR INSTALL NEMS_DB TO GET NEMS0 SUPPORT.
GNU General Public License v3.0
8 stars 4 forks source link

Revamped fit_iteratively #66

Closed jacobpennington closed 6 years ago

jacobpennington commented 6 years ago

Split into fit_module_sets and fit_iteratively. fit_module_sets uses the previous behavior with some unnecessary checks/loops removed. fit_iteratively has added the outer tolerance loop and split iters max_iter argument into 'tol_iter' to control the max number of total loops per tolerance level and 'fit_iter' to control the max number of fitter steps between tolerance checks.

Pulled fit_basic's cost_function into a separate function named 'basic_cost' in the same module so that fit_module_sets and fit_iteratively can use it (as well as future analyses).

Created keyword parsers for fit_module_sets and fit_iteratively so that using fitter_kwargs is not necessary.