Skip to content

Commit

Permalink
bf
Browse files Browse the repository at this point in the history
  • Loading branch information
rkansal47 committed Nov 3, 2023
1 parent 0db8cd0 commit 5139cac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HHbbVV/postprocessing/TrainBDT.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ def evaluate_model(

for dataset, label in [(train, "Train"), (test, "Test")]:
# Normalize the two distributions
sf = 0.5 / test_size if label == "Test" else (1 - test_size) / 0.5
sf = (0.5 / test_size) if label == "Test" else (0.5 / (1 - test_size))
print(f"Scaling {label} by {sf}")
for key in training_keys:
data = dataset[year][dataset[year]["Dataset"] == key]
Expand Down

0 comments on commit 5139cac

Please sign in to comment.