autofit.LBFGS#
- class LBFGS[source]#
Bases:
AbstractBFGSAbstract wrapper for the BFGS and L-BFGS scipy non-linear searches.
- Parameters:
Methods
apply_test_modeOverride in subclasses to reduce sampler iterations for test mode.
check_modelcopy_with_pathsexact_fitfitFit a model, M with some function f that takes instances of the class represented by model M and gives a score for their fitness.
make_poolMake the pool instance used to parallelize a NonLinearSearch alongside a set of unique ids for every process in the pool.
make_sneakier_poolmake_sneaky_poolCreate a pool for multiprocessing that uses slight-of-hand to avoid copying the fitness function between processes multiple times.
optimisePerform optimisation for expectation propagation.
output_search_internalperform_updatePerform an update of the non-linear search's model-fitting results.
perform_visualizationPerform visualization of the non-linear search's model-fitting results.
plot_resultsplot_start_pointVisualize the starting point of the non-linear search, using an instance of the model at the starting point of the maximum likelihood estimator.
post_fit_outputCleans up the output folderds after a completed non-linear search.
pre_fit_outputOutputs attributes of fit before the non-linear search begins.
result_via_completed_fitReturns the result of the non-linear search of a completed model-fit.
samples_fromLoads the samples of a non-linear search from its output files.
samples_via_internal_fromReturns a Samples object from the LBFGS internal results.
start_resume_fitAttributes
loggerLog 'msg % args' with severity 'DEBUG'.
nameoptionspathsshould_plot_start_pointtimerReturns the timer of the search, which is used to output informaiton such as how long the search took and how much parallelization sped up the search time.
- method = 'L-BFGS-B'#