Skip to content

Commit

Permalink
vbf vars arg
Browse files Browse the repository at this point in the history
  • Loading branch information
rkansal47 committed Apr 4, 2024
1 parent 2e7f2b3 commit 35642ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/HHbbVV/postprocessing/TrainBDT.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ def main(args):
label_encoder.classes_ = np.array(training_keys) # need this to maintain training keys order

bdtVars = AllTaggerBDTVars if args.all_tagger_vars else SingleTaggerBDTVars
if not args.vbf_vars:
bdtVars = bdtVars[:-4]

early_stopping_callback = xgb.callback.EarlyStopping(
rounds=args.early_stopping_rounds, min_delta=args.early_stopping_min_delta
Expand Down Expand Up @@ -818,6 +820,7 @@ def do_inference(
add_bool_arg(
parser, "all-tagger-vars", "Use all tagger outputs vs. single THWWvsT score", default=True
)
add_bool_arg(parser, "vbf-vars", "Use VBF vars", default=True)
add_bool_arg(parser, "multiclass", "Classify each background separately", default=True)

add_bool_arg(parser, "use-sample-weights", "Use properly scaled event weights", default=True)
Expand Down

0 comments on commit 35642ba

Please sign in to comment.