Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
a497590
claude-rs-devel
schoef Mar 29, 2026
4fdb64a
Merge pull request #110 from HephyAnalysisSW/devel-sbi-rs
schoef Mar 30, 2026
714872e
delphes
schoef Apr 11, 2026
5c7fc3a
resolved
schoef Apr 11, 2026
b820690
Merge branch 'devel-sbi-rs-hepgpu2' of github.com:HephyAnalysisSW/GOL…
schoef Apr 11, 2026
efd76a7
Merge branch 'devel-sbi-rs-hepgpu2' of github.com:HephyAnalysisSW/GOL…
schoef Apr 13, 2026
bcc5482
Fit comparison plots: fixing saving call to use syncer
rbarrue Apr 18, 2026
f696352
PDF eigenmode plotting: simpler version for CMS
rbarrue Apr 18, 2026
1791cd5
Prefit plotting: fixes
rbarrue Apr 18, 2026
98370ff
Postfit plot script: plot data
rbarrue Apr 18, 2026
5577bb9
BIT plots (from sbi-pdf)
rbarrue Apr 20, 2026
b6e7a83
Merge branch 'devel-sbi-rs-hepgpu2' into devel-sbi-rs
schoef Apr 22, 2026
42d9f26
Postfit plots from binned config + unbinned fit result
rbarrue Apr 23, 2026
2d55722
Fit comparisons for subsets of parameters
rbarrue Apr 23, 2026
3cbd9d5
Pretty PNN closure plots: changing output directory
rbarrue Apr 23, 2026
50142ba
BIT plots: truth-only plots
rbarrue Apr 23, 2026
71ea02e
PDF uncertainty comparison script
rbarrue Apr 23, 2026
8670b46
Merge plotting-only changes from 'devel-sbi-rs' of github.com:HephyAn…
rbarrue Apr 23, 2026
889e257
BIT option: CLI argument for clipping (off by default)
rbarrue Apr 23, 2026
72b7729
Archiving superseded postfit plot script
rbarrue Apr 23, 2026
9c420b4
Unf***ing commit history
rbarrue Apr 23, 2026
d8addbe
Prefit plots from inputs: deleting broken + moving from Robert's folder
rbarrue Apr 23, 2026
4bfc0e2
Postfit plot from unbinned config
rbarrue Apr 23, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions ML/PNN/pnn_training_closure.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@
from tqdm import tqdm

# Plot options (binning, labels, optional y_ratio_range)
from data.plot_options import plot_options as PLOT_OPTS

#from data.plot_options import plot_options as PLOT_OPTS
from plot.bit.propaganda_plot_options import plot_options as PLOT_OPTS #temporary change

# ---------------- args ----------------
p = argparse.ArgumentParser(description="PNN training-closure per-feature plots (YAML-driven)")
p.add_argument("config", help="Path to global YAML config")
p.add_argument("--job", default=None, help="PNN job id to run (omit to list)")
p.add_argument("--small", action="store_true", help="Only first shard for debugging")
p.add_argument("--lumi_scale", type=float, default=None, help="Scale lumi?")
p.add_argument("--for_debug", action="store_true", help="Use _for_debug directories")
p.add_argument("--n_split", default=None, help="Set sample split")
args = p.parse_args()
Expand Down Expand Up @@ -160,12 +163,17 @@ def list_and_exit():

loaders.append(eff_loader)

# Reset n_split
if args.n_split:
for l in loaders:
if isinstance(l, SelectionView):
for l in loaders:
# Reset n_split
if isinstance(l, SelectionView):
if args.lumi_scale is not None:
l.base.weight_rescale = args.lumi_scale
if args.n_split:
l.base.split = args.n_split
else:
else:
if args.lumi_scale is not None:
l.weight_rescale = args.lumi_scale
if args.n_split:
l.split = args.n_split

# ---------------- sanity: same features across loaders ----------------
Expand Down Expand Up @@ -212,9 +220,8 @@ def list_and_exit():

plot_dir = os.path.join(
user.plot_directory,
"PNN_training_closure",
cfg_base + ("_for_debug" if args.for_debug else ""),
"training_closure",
"PNN",
J["id"],
)
os.makedirs(plot_dir, exist_ok=True)
Expand Down
Loading