The target distances and list of accepted simulations during the ABC algorithm are separate attributes of the SimulationBundle and are therefore difficult to work with, requiring extra manipulation steps to compare the acceptance and distance as a function of the input parameters.
Changes
Added the function collate_accept as a setter function in SimulationBundle that generates a polars data frame from the accepted distances dictionary and joins these results to the initial parameter inputs for quick diagnostics and manipulation.
Additional pre-commit requested changes were added for white space in other files, including one that required explicit import statements to be removed from the __init__.py file
Overview
The target distances and list of accepted simulations during the ABC algorithm are separate attributes of the
SimulationBundle
and are therefore difficult to work with, requiring extra manipulation steps to compare the acceptance and distance as a function of the input parameters.Changes
Added the function
collate_accept
as a setter function inSimulationBundle
that generates a polars data frame from the accepteddistances
dictionary and joins these results to the initial parameter inputs for quick diagnostics and manipulation.Additional pre-commit requested changes were added for white space in other files, including one that required explicit import statements to be removed from the __init__.py file