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

pymc-devs / pymc3 / 7503
87%

Build:
DEFAULT BRANCH: master
Ran 21 Mar 2018 10:15AM UTC
Jobs 11
Files 139
Run time 65min
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

pending completion
7503

push

travis-ci

junpenglao
Refactor distribution.draw_values (#2902)

* Fix for #2900. Changed the way in which draw_values handles the named node-inputs. Now the tree dependence is constructed to set the givens dict.

* Fixed conflicts

* Fixed more conflicts

* Fixed typo

* Changed test_dep_vars to test for successful draws even in the cases of dependent variables.

* Removed comments from test_random.py, and distribution.py. Added content to RELEASE-NOTES. Fixed bug in the interaction between draw_values, _draw_value and _compile_theano_function. In some cases, draw_values would set an item of the givens dictionary to a theano.tensor.TensorConstant. In _draw_value(param, ...), if param was a theano.tensor.TensorVariable without a random method, and not set in point, _compile_theano_function would be called, using as one of its variables, a theano.tensor.TensorConstant. This lead to TypeError: ("Constants not allowed in param list",...) exceptions being raised. The fix was to skip the inclusion into the givens dictionary of named nodes that were instances of theano.tensor.TensorConstant, because their value would already be available for theano during the function compilation.

* Fixed another bug which was similar to the theano.tensor.TensorConstant, but it occurred on theano.tensor.sharedvar.SharedVariable instances. The error that was raised was similar, SharedVariables cannot be supplied as raw input to theano.function. The fix was the same as for TensorConstants, skip them when constructing the givens dictionary.

* Guarded against a potencial bug. In draw_values, when skipping for TensorConstant and SharedVariable types, these nodes could be added to the stack again later because their names would not be in givens.keys(). To counter that, a separate set, `stored`, with the names of nodes that are either stored in givens or whos values should be available to theano.function, is used to chose which nodes to add to the stack.

* Syntax change based on twie... (continued)

68 of 68 new or added lines in 3 files covered. (100.0%)

16297 of 18492 relevant lines covered (88.13%)

4.76 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
pymc3/distributions/distribution.py
5
100.0
pymc3/model.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
pymc3/step_methods/hmc/nuts.py
Jobs
ID Job ID Ran Files Coverage
1 7503.1 (PYTHON_VERSION=2.7 FLOATX='float32' TESTCMD="--durations=10 --ignore=pymc3/tests/test_examples.py --cov-append --ignore=pymc3/tests/test_distributions_random.py --ignore=pymc3/tests/test_variational_inference.py --ignore=pymc3/tests/test_shared.py --ignore=pymc3/tests/test_smc.py --ignore=pymc3/tests/test_updates.py --ignore=pymc3/tests/test_posteriors.py --ignore=pymc3/tests/test_sampling.py") 21 Mar 2018 11:02AM UTC 0
70.55
Travis Job 7503.1
2 7503.2 (PYTHON_VERSION=2.7 FLOATX='float32' RUN_PYLINT="true" TESTCMD="--durations=10 --cov-append pymc3/tests/test_distributions_random.py pymc3/tests/test_shared.py pymc3/tests/test_smc.py pymc3/tests/test_sampling.py") 21 Mar 2018 10:57AM UTC 0
39.81
Travis Job 7503.2
3 7503.3 (PYTHON_VERSION=2.7 FLOATX='float32' TESTCMD="--durations=10 --cov-append pymc3/tests/test_examples.py pymc3/tests/test_posteriors.py") 21 Mar 2018 10:54AM UTC 0
25.98
Travis Job 7503.3
4 7503.4 (PYTHON_VERSION=2.7 FLOATX='float32' TESTCMD="--durations=10 --cov-append pymc3/tests/test_variational_inference.py pymc3/tests/test_updates.py") 21 Mar 2018 10:56AM UTC 0
29.22
Travis Job 7503.4
5 7503.5 (PYTHON_VERSION=2.7 FLOATX='float64' TESTCMD="--durations=10 --ignore=pymc3/tests/test_examples.py --cov-append --ignore=pymc3/tests/test_distributions_random.py --ignore=pymc3/tests/test_variational_inference.py --ignore=pymc3/tests/test_shared.py --ignore=pymc3/tests/test_smc.py --ignore=pymc3/tests/test_updates.py --ignore=pymc3/tests/test_posteriors.py --ignore=pymc3/tests/test_sampling.py") 21 Mar 2018 11:04AM UTC 0
73.52
Travis Job 7503.5
6 7503.6 (PYTHON_VERSION=2.7 FLOATX='float64' RUN_PYLINT="true" TESTCMD="--durations=10 --cov-append pymc3/tests/test_distributions_random.py pymc3/tests/test_shared.py pymc3/tests/test_smc.py pymc3/tests/test_sampling.py") 21 Mar 2018 11:08AM UTC 0
40.39
Travis Job 7503.6
7 7503.7 (PYTHON_VERSION=2.7 FLOATX='float64' TESTCMD="--durations=10 --cov-append pymc3/tests/test_examples.py pymc3/tests/test_posteriors.py") 21 Mar 2018 11:07AM UTC 0
26.47
Travis Job 7503.7
8 7503.8 (PYTHON_VERSION=3.6 FLOATX='float64' TESTCMD="--durations=10 --cov-append --ignore=pymc3/tests/test_examples.py --ignore=pymc3/tests/test_distributions_random.py --ignore=pymc3/tests/test_variational_inference.py --ignore=pymc3/tests/test_shared.py --ignore=pymc3/tests/test_smc.py --ignore=pymc3/tests/test_updates.py --ignore=pymc3/tests/test_posteriors.py --ignore=pymc3/tests/test_sampling.py") 21 Mar 2018 11:18AM UTC 0
73.75
Travis Job 7503.8
9 7503.9 (PYTHON_VERSION=3.6 FLOATX='float64' TESTCMD="--durations=10 --cov-append pymc3/tests/test_distributions_random.py pymc3/tests/test_shared.py pymc3/tests/test_smc.py pymc3/tests/test_sampling.py") 21 Mar 2018 11:16AM UTC 0
40.35
Travis Job 7503.9
10 7503.10 (PYTHON_VERSION=3.6 FLOATX='float64' BUILD_DOCS="true" TESTCMD="--durations=10 --cov-append pymc3/tests/test_examples.py pymc3/tests/test_posteriors.py") 21 Mar 2018 11:15AM UTC 0
26.47
Travis Job 7503.10
11 7503.11 (PYTHON_VERSION=3.6 FLOATX='float64' TESTCMD="--durations=10 --cov-append pymc3/tests/test_variational_inference.py pymc3/tests/test_updates.py") 21 Mar 2018 11:21AM UTC 0
29.23
Travis Job 7503.11
Source Files on build 7503
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #7503
  • f833a144 on github
  • Prev Build on master (#7497)
  • Next Build on master (#7505)
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