• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

diana-hep / pyhf / 1549 / 5
94%
master: 94%

Build:
DEFAULT BRANCH: master
Ran 20 Sep 2018 05:30PM UTC
Files 26
Run time 23s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Sep 2018 05:05PM UTC coverage: 59.73% (-38.4%) from 98.15%
1549.5

push

travis-ci

kratsg
Use distributions in ML backends for better Poisson approximation (#268)

* Use TensorFlow Probability for distributions

The only real change is swapping out tf.distributions for
tfp.distributions, however this is a large improvement on the backend.

In addition, tfp is able to better approximate the continous
approximation to the Poisson distribution's p.m.f. while still providing
smooth gradients.

Also add some docstrings.

* Don't use the Normal approximation for the NumPy backend in testing

With improvments to the ML backends it isn't needed

* Use torch.distributions.Poisson for poisson p.m.f. approximation

Provides better approximation then the Normal approximation

* Use PyTorch's Poisson log_prob approximation for MXNet's poisson

This is just implimenting the code that exists at the moment in
PyTorch's library

* Add docstrings to NumPy backend poisson and normal

* Move examples to before Args and Returns

For style consistency in the docs

* Remove use of poisson_from_normal=True from everywhere

It is no longer needed for comparisons and so is not needed anywhere

Though as a result of this, loosen the tolerance for the standard
deviation of results in test_tensor to 5e-5

* Wrap json.load in with clause to safely load and close

Resolves issue of ResourceWarning: unclosed file <_io.TextIOWrapper
name='<your path here>/pyhf/pyhf/data/spec.json' mode='r' encoding='UTF-8'>

Additionally apply autopep8

* Wrap click.open_file in with clause to safely load and close

Resolves issue of ResourceWarning: unclosed file

* Split pytest into two runs given Travis memory constraints

If pytest runs all tests at once then it exceeds the alloted memory for
it by Travis CI. To deal with this, tests/test_notebooks is run by itself
in a second run of pytest. This is a bit strange, but seems to work.

As a result of this and the order that pyest runs the tests, the
docstring tests finish just befor... (continued)

752 of 1259 relevant lines covered (59.73%)

0.6 hits per line

Source Files on job 1549.5
  • Tree
  • List 0
  • Changed 20
  • Source Changed 8
  • Coverage Changed 20
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1026
  • Travis Job 1549.5
  • 49a9e87e on github
  • Prev Job for on master (#1521.1)
  • Next Job for on master (#1550.3)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc