Skip to content

Commit

Permalink
Merge pull request #351 from johannbrehmer/weighted-histo
Browse files Browse the repository at this point in the history
Improved default for weighted histograms
  • Loading branch information
johannbrehmer authored Jun 13, 2019
2 parents e19984f + d07c00d commit bed83a7
Show file tree
Hide file tree
Showing 5 changed files with 113 additions and 213 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
author = 'Johann Brehmer, Felix Kling, Irina Espejo, and Kyle Cranmer'

# The short X.Y version
version = '0.4.4'
version = '0.4.5'
# The full version, including alpha/beta/rc tags
release = version

Expand Down
313 changes: 105 additions & 208 deletions examples/tutorial_particle_physics/4a_limits.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion madminer/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.4.4"
__version__ = "0.4.5"
7 changes: 5 additions & 2 deletions madminer/limits.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def observed_limits(
include_xsec=True,
resolutions=25,
luminosity=300000.0,
n_histo_toys=10000,
n_histo_toys=None,
returns="pval",
dof=None,
n_observed=None,
Expand Down Expand Up @@ -83,7 +83,7 @@ def expected_limits(
include_xsec=True,
resolutions=25,
luminosity=300000.0,
n_histo_toys=10000,
n_histo_toys=None,
returns="pval",
dof=None,
histo_theta_batchsize=100,
Expand Down Expand Up @@ -363,6 +363,9 @@ def _make_sampled_histo_data(
sampler = SampleAugmenter(self.madminer_filename, include_nuisance_parameters=self.include_nuisance_parameters)
all_summary_stats, all_theta = None, None

if n_toys_per_theta is None:
n_toys_per_theta = 10000

n_thetas = len(thetas)
n_batches = (n_thetas - 1) // histo_theta_batchsize + 1
for i_batch in range(n_batches):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
EMAIL = 'johann.brehmer@nyu.edu'
AUTHOR = 'Johann Brehmer, Felix Kling, Irina Espejo, Kyle Cranmer'
REQUIRES_PYTHON = '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4'
VERSION = '0.4.4'
VERSION = '0.4.5'

# What packages are required for this module to be executed?
REQUIRED = [
Expand Down

0 comments on commit bed83a7

Please sign in to comment.