Skip to content

Commit

Permalink
Update robustness plot
Browse files Browse the repository at this point in the history
  • Loading branch information
asogaard committed May 28, 2018
1 parent 885e82b commit 14f128c
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions tests/comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def main (args):
from adversarial.models import classifier_model, adversary_model, combined_model, decorrelation_model

# Load data
data, features, _ = load_data(args.input + 'data.h5', test=True)#, sample=0.1) # @TEMP!
data, features, _ = load_data(args.input + 'data.h5', test=True)


# Common definitions
Expand Down Expand Up @@ -169,13 +169,21 @@ def perform_studies (data, args, tagger_features, ann_vars, uboost_vars):
"""
masscuts = [True, False]

# Perform combined robustness study
with Profile("Study: Robustness"):
for masscut in masscuts:
studies.robustness_full(data, args, tagger_features, masscut=masscut)
pass
pass


# Perform pile-up robustness study
with Profile("Study: Robustness (pile-up)"):
bins = [0, 5.5, 10.5, 15.5, 20.5, 25.5, 30.5]
#bins = [0, 9.5, 11.5, 13.5, 15.5, 18.5, 30.5]
print "NPV bins:", bins
for masscut in masscuts:
#studies.robustness(data, args, tagger_features, 'npv', bins, masscut=masscut)
studies.robustness(data, args, tagger_features, 'npv', bins, masscut=masscut)
pass
pass

Expand Down Expand Up @@ -225,7 +233,7 @@ def perform_studies (data, args, tagger_features, ann_vars, uboost_vars):
studies.roc(data, args, tagger_features, masscut=masscut)
pass
pass

# Perform JSD study
with Profile("Study: JSD"):
studies.jsd(data, args, tagger_features)
Expand Down

0 comments on commit 14f128c

Please sign in to comment.