Skip to content
Snippets Groups Projects
Unverified Commit db1e90ee authored by Eric Schanet's avatar Eric Schanet
Browse files

Merge branch 'master' of gitlab.physik.uni-muenchen.de:Nikolai.Hartmann/KerasROOTClassification

* 'master' of gitlab.physik.uni-muenchen.de:Nikolai.Hartmann/KerasROOTClassification:
  turn back on division by mean weight
  make total weight more consistent
  option to evaluate before activation
  python3 compatibility
  model plotting and alternative significance plot
  Improve loading from dir
parents 3ffe2c06 cb83fad4
No related branches found
No related tags found
No related merge requests found
...@@ -9,11 +9,11 @@ from KerasROOTClassification import * ...@@ -9,11 +9,11 @@ from KerasROOTClassification import *
logging.basicConfig() logging.basicConfig()
logging.getLogger("KerasROOTClassification").setLevel(logging.INFO) logging.getLogger("KerasROOTClassification").setLevel(logging.INFO)
c = ClassificationProject(sys.argv[1]) c = load_from_dir(sys.argv[1])
cs = [] cs = []
cs.append(c) cs.append(c)
if len(sys.argv) > 2: if len(sys.argv) > 2:
for project_name in sys.argv[2:]: for project_name in sys.argv[2:]:
cs.append(ClassificationProject(project_name)) cs.append(load_from_dir(project_name))
This diff is collapsed.
...@@ -156,3 +156,10 @@ class WeightedRobustScaler(RobustScaler): ...@@ -156,3 +156,10 @@ class WeightedRobustScaler(RobustScaler):
return X return X
else: else:
return super(WeightedRobustScaler, self).transform(X) return super(WeightedRobustScaler, self).transform(X)
def poisson_asimov_significance(s, ds, b, db):
"see `<http://www.pp.rhul.ac.uk/~cowan/stat/medsig/medsigNote.pdf>`_)"
db = np.sqrt(db**2+ds**2)
return np.sqrt(2*((s+b)*np.log(((s+b)*(b+db**2))/(b**2+(s+b)*db**2))-(b**2)/(db**2)*np.log(1+(db**2*s)/(b*(b+db**2)))))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment