Skip to content

Commit 7201bdf

Browse files
committed
remove _manybins postfix from dnn variables
1 parent 6dbef6f commit 7201bdf

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

hbw/config/hist_hooks.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ def rebin(task, hists: hist.Histogram):
7979

8080
# edges for 2b channel
8181
edges = {
82-
"mlscore.hh_ggf_hbb_hvv2l2nu_kl1_kt1_manybins": [0.0, 0.429, 0.509, 0.5720000000000001, 0.629, 0.68, 0.72, 0.757, 0.789, 0.8200000000000001, 1.0], # noqa
83-
"mlscore.hh_vbf_hbb_hvv2l2nu_kv1_k2v1_kl1_manybins": [0.0, 0.427, 0.529, 0.637, 0.802, 1.0],
84-
"mlscore.tt_manybins": [0.0, 0.533, 0.669, 1.0],
85-
"mlscore.h_manybins": [0.0, 0.494, 0.651, 1.0],
82+
"mlscore.hh_ggf_hbb_hvv2l2nu_kl1_kt1": [0.0, 0.429, 0.509, 0.5720000000000001, 0.629, 0.68, 0.72, 0.757, 0.789, 0.8200000000000001, 1.0], # noqa
83+
"mlscore.hh_vbf_hbb_hvv2l2nu_kv1_k2v1_kl1": [0.0, 0.427, 0.529, 0.637, 0.802, 1.0],
84+
"mlscore.tt": [0.0, 0.533, 0.669, 1.0],
85+
"mlscore.h": [0.0, 0.494, 0.651, 1.0],
8686
}
8787

8888
h_rebinned = DotDict()

hbw/inference/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def config_variable(self: InferenceModel, config_cat_inst: od.Config):
8787
root_cats = config_cat_inst.x.root_cats
8888
if dnn_cat := root_cats.get("dnn"):
8989
dnn_proc = dnn_cat.replace("ml_", "")
90-
return f"mlscore.{dnn_proc}_manybins"
90+
return f"mlscore.{dnn_proc}"
9191
else:
9292
return "mli_mbb"
9393

hbw/ml/derived/dl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ def setup(self):
136136
# NOTE: since these variables are only used in ConfigTasks,
137137
# we do not need to add these variables to all configs
138138
for proc in self.processes:
139-
if f"mlscore.{proc}_manybins" not in self.config_inst.variables:
139+
if f"mlscore.{proc}" not in self.config_inst.variables:
140140
self.config_inst.add_variable(
141-
name=f"mlscore.{proc}_manybins",
141+
name=f"mlscore.{proc}",
142142
expression=f"mlscore.{proc}",
143143
null_value=-1,
144144
binning=(1000, 0., 1.),

hbw/ml/derived/sl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ def setup(self):
136136
# NOTE: since these variables are only used in ConfigTasks,
137137
# we do not need to add these variables to all configs
138138
for proc in self.processes:
139-
if f"mlscore.{proc}_manybins" not in self.config_inst.variables:
139+
if f"mlscore.{proc}" not in self.config_inst.variables:
140140
self.config_inst.add_variable(
141-
name=f"mlscore.{proc}_manybins",
141+
name=f"mlscore.{proc}",
142142
expression=f"mlscore.{proc}",
143143
null_value=-1,
144144
binning=(1000, 0., 1.),

hbw/ml/derived/sl_res.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def setup(self):
163163
)
164164
self.config_inst.add_variable(
165165
# TODO: to be used for rebinning
166-
name=f"mlscore.{proc}_manybins",
166+
name=f"mlscore.{proc}",
167167
expression=f"mlscore.{proc}",
168168
null_value=-1,
169169
binning=(1000, 0., 1.),

0 commit comments

Comments
 (0)