tracts.driver#
The main entry point for tracts: run_tracts() loads a driver YAML file, runs the (optionally
two-step) optimization via tracts.core, and writes the output files and plots via
output_simulation_data_sex_biased(). The rest of the module implements the
individual steps of that pipeline (running/re-running the optimization, sex-bias fixing and boundary
re-optimizations, etc.), which run_tracts() orchestrates.
Functions
|
Repeatedly re-optimizes while one or more sex-bias parameters have an optimal value at a +-1 boundary. |
|
Runs the optimization for any demographic model, including sex-biased models. |
|
Runs the model multiple times with different initial parameters. |
|
Runs the optimization (single-step, or two-step with the step 1 / step 2 / step-2-skipped branches) given a list of starting parameters in physical units, returning the optimal parameters and the corresponding likelihood. |
Repeats |
|
|
Main function to run tracts with a specified driver file. |