slv.inversion.sweep.SweepResults#
- class slv.inversion.sweep.SweepResults(path)[source]#
Wraps
sweep_results.csvfor post-sweep analysis.- Variables:
path (pathlib.Path) – Path to the results CSV.
df (pandas.DataFrame) – All completed rows, sorted by
chi2_distance(closest to 1 first).
Examples
results = SweepResults("/scratch/my_sweep/sweep_results.csv") # Best-fitting configs (chi² ∈ [0.9, 1.1]) results.best(tol=0.1) # Which values of prior_base_std give a stable posterior flux? results.stability("cfg_prior_base_std") # Are results more sensitive to prior or MDM params? results.sensitivity() # 1-D scatter: chi² vs a single parameter results.plot_chi2("cfg_prior_base_std") # 2-D heatmap: chi² over two parameters results.plot_heatmap("cfg_prior_base_std", "cfg_prior_std_frac") # Rehydrate best config for a reproduction run cfg, cls = results.to_config(results.best().iloc[0])
Methods
|
Return rows where |
|
Return rows that errored during the sweep. |
|
Scatter plot of reduced chi² vs a swept parameter. |
|
Heatmap of metric over two swept parameters. |
|
Horizontal bar chart of parameter sensitivity (range of group means). |
|
Re-read from disk (useful while a sweep is still running). |
|
Rank swept parameters by their effect on metric. |
|
Standard deviation of metric grouped by groupby_params. |
|
Rehydrate an |