CDCgov / cfa-abc-calibration

Apache License 2.0
1 stars 0 forks source link

FeatureAdd: Collate the input parameters, distances, and accept condition into single polars DataFrame #11

Closed KOVALW closed 3 weeks ago

KOVALW commented 1 month ago

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

KOVALW commented 3 weeks ago

This PR was done before test implementation, should be rebased or deleted before re-opening