Configuration
Using generate_config.py
PyFC provides an interactive command-line tool to help users build their analysis configuration files securely and without typos. To interactively generate a configuration file from anywhere, simply run:
python -m pyfc.generate_config
The script will prompt you with questions regarding your likelihood type, number of toys, parallelization preferences, and smoothing options. It validates your inputs and writes a file (by default, fc_config.json) to your current working directory.
Configuration Parameters
Parameter |
Description |
Allowed Values |
Default |
|---|---|---|---|
|
Evaluates models via Poisson bins or Extended Unbinned Maximum Likelihood. |
|
|
|
Confidence Levels determining exact frequentist coverage integration targets. |
List of floats |
|
|
Monte Carlo pseudo-experiments generated per parameter space point. |
Integer \(> 0\) |
|
|
Optimizer used for finding global and conditional likelihood minima. |
|
|
|
Overrides the |
|
|
|
Shifts Poisson likelihood to a Negative Binomial to account for finite simulation stats. |
|
|
|
Toggles 1D limits mapping. |
|
|
|
Toggles joint 2D contour scanning and edge tracing. |
|
|
|
Thread/process count for parallel toy generation. |
Integer \(\geq 0\) |
|
|
Logging detail level. |
|
|
|
Checkpoints interim state to |
|
|
|
Labels mapping the physical parameters for plotting outputs. Supports raw LaTeX (e.g. |
List of strings |
|
|
If True, applies default Gaussian kernel smoothing to 1D limit profiles in plots. |
|
|
|
If True, applies default interpolation smoothing to final 2D contour graphics. |
|
|
|
Dynamically stops toy generation early once a grid point’s accept/reject verdict is statistically settled (99.9% confidence, never before 100 toys). Only for |
|
|
|
Chunk size for submitting/collecting toys from the executor (bounds peak memory for |
Integer \(> 0\) |
|
|
Traces contour perimeters in 2D space to skip resolving deep interior/exterior nodes. |
|
|
|
Number of distinct starting points tried per DATA fit (unconditional + every 1D/2D conditional fit), keeping whichever converges to the lowest NLL. Only affects |
Integer \(> 0\) |
|
|
Seeds each 1D/2D scan grid point’s DATA fit from an adjacent, already-evaluated grid point’s profiled parameters instead of always starting from the bounds midpoint. Only affects |
|
|
|
Pipes output directly to a persistent text log file. |
|
|
|
Directory path where final results, plots, and checkpoints reside. |
String (path) |
|
|
Prefix for the serialized |
String |
|