Last active
February 21, 2017 03:46
-
-
Save ggand0/e9769f21fbb1bfd26b74d304efbd8584 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ubuntu@gando_theano:~/Tars$ python -m unittest Tars.tests.test_distribution_samles | |
| Traceback (most recent call last): | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/runpy.py", line 162, in _run_module_as_main | |
| "__main__", fname, loader, pkg_name) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/runpy.py", line 72, in _run_code | |
| exec code in run_globals | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/unittest/__main__.py", line 12, in <module> | |
| main(module=None) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/unittest/main.py", line 94, in __init__ | |
| self.parseArgs(argv) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/unittest/main.py", line 149, in parseArgs | |
| self.createTests() | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/unittest/main.py", line 158, in createTests | |
| self.module) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/unittest/loader.py", line 130, in loadTestsFromNames | |
| suites = [self.loadTestsFromName(name, module) for name in names] | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/unittest/loader.py", line 100, in loadTestsFromName | |
| parent, obj = obj, getattr(obj, part) | |
| AttributeError: 'module' object has no attribute 'test_distribution_samles' | |
| ubuntu@gando_theano:~/Tars$ python -m unittest Tars.tests.test_distribution_samples | |
| Using gpu device 0: GeForce GTX TITAN Black (CNMeM is disabled, cuDNN not available) | |
| /home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/site-packages/theano/tensor/signal/downsample.py:6: UserWarning: downsample module has been moved to the theano.tensor.signal.pool module. | |
| "downsample module has been moved to the theano.tensor.signal.pool module.") | |
| F..FFFFF.....F... | |
| ====================================================================== | |
| FAIL: test_consistency (Tars.tests.test_distribution_samples.TestBernoulliSample) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "Tars/tests/test_distribution_samples.py", line 97, in test_consistency | |
| assert_array_almost_equal(actual, desired, decimal=15) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/site-packages/numpy/testing/utils.py", line 979, in assert_array_almost_equal | |
| precision=decimal) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/site-packages/numpy/testing/utils.py", line 796, in assert_array_compare | |
| raise AssertionError(msg) | |
| AssertionError: | |
| Arrays are not almost equal to 15 decimals | |
| (mismatch 100.0%) | |
| x: array([ 0.999997138977051, 0.910126924514771, 0.024815637618303, | |
| 0.353807836771011, 0.161577582359314], dtype=float32) | |
| y: array([ 0.999997150835655, 0.910126924628025, 0.02481563634675 , | |
| 0.353807816572465, 0.161577589091998]) | |
| ====================================================================== | |
| FAIL: test_consistency (Tars.tests.test_distribution_samples.TestBetaSample) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "Tars/tests/test_distribution_samples.py", line 323, in test_consistency | |
| assert_array_almost_equal(actual, desired, decimal=15) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/site-packages/numpy/testing/utils.py", line 979, in assert_array_almost_equal | |
| precision=decimal) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/site-packages/numpy/testing/utils.py", line 796, in assert_array_compare | |
| raise AssertionError(msg) | |
| AssertionError: | |
| Arrays are not almost equal to 15 decimals | |
| (mismatch 40.0%) | |
| x: array([ 0.125119388103485, 0.994993805885315, 0.826709151268005, | |
| 0.8865647315979 , 0.007083556614816], dtype=float32) | |
| y: array([ 0.125119373202324, 0.994993805885315, 0.826709151268005, | |
| 0.886564791202545, 0.007083556614816]) | |
| ====================================================================== | |
| FAIL: test_consistency (Tars.tests.test_distribution_samples.TestCategoricalSample) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "Tars/tests/test_distribution_samples.py", line 211, in test_consistency | |
| assert_array_almost_equal(actual[0], desired, decimal=15) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/site-packages/numpy/testing/utils.py", line 979, in assert_array_almost_equal | |
| precision=decimal) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/site-packages/numpy/testing/utils.py", line 796, in assert_array_compare | |
| raise AssertionError(msg) | |
| AssertionError: | |
| Arrays are not almost equal to 15 decimals | |
| (mismatch 80.0%) | |
| x: array([ 9.994389414787292e-01, 4.618786704213562e-07, | |
| 5.598535062745214e-04, 6.999634365456586e-07, | |
| 9.540292817897256e-13], dtype=float32) | |
| y: array([ 9.994389867572965e-01, 4.618787093000000e-07, | |
| 5.598514063278000e-04, 6.999567125000000e-07, | |
| 9.540000000000000e-13]) | |
| ====================================================================== | |
| FAIL: test_consistency (Tars.tests.test_distribution_samples.TestConcreteSample) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "Tars/tests/test_distribution_samples.py", line 183, in test_consistency | |
| assert_array_almost_equal(actual[0], desired, decimal=15) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/site-packages/numpy/testing/utils.py", line 979, in assert_array_almost_equal | |
| precision=decimal) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/site-packages/numpy/testing/utils.py", line 796, in assert_array_compare | |
| raise AssertionError(msg) | |
| AssertionError: | |
| Arrays are not almost equal to 15 decimals | |
| (mismatch 80.0%) | |
| x: array([ 9.994389414787292e-01, 4.618786704213562e-07, | |
| 5.598535062745214e-04, 6.999634365456586e-07, | |
| 9.540292817897256e-13], dtype=float32) | |
| y: array([ 9.994389867572965e-01, 4.618787093000000e-07, | |
| 5.598514063278000e-04, 6.999567125000000e-07, | |
| 9.540000000000000e-13]) | |
| ====================================================================== | |
| FAIL: test_consistency (Tars.tests.test_distribution_samples.TestDirichletSample) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "Tars/tests/test_distribution_samples.py", line 380, in test_consistency | |
| assert_array_almost_equal(actual, desired, decimal=15) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/site-packages/numpy/testing/utils.py", line 979, in assert_array_almost_equal | |
| precision=decimal) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/site-packages/numpy/testing/utils.py", line 796, in assert_array_compare | |
| raise AssertionError(msg) | |
| AssertionError: | |
| Arrays are not almost equal to 15 decimals | |
| (mismatch 40.0%) | |
| x: array([ 0.125119388103485, 0.87488055229187 , 0. , | |
| 0. , 0. ], dtype=float32) | |
| y: array([ 0.125119373202324, 0.874880611896515, 0. , | |
| 0. , 0. ]) | |
| ====================================================================== | |
| FAIL: test_consistency (Tars.tests.test_distribution_samples.TestGammaSample) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "Tars/tests/test_distribution_samples.py", line 353, in test_consistency | |
| assert_array_almost_equal(actual, desired, decimal=15) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/site-packages/numpy/testing/utils.py", line 979, in assert_array_almost_equal | |
| precision=decimal) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/site-packages/numpy/testing/utils.py", line 796, in assert_array_compare | |
| raise AssertionError(msg) | |
| AssertionError: | |
| Arrays are not almost equal to 15 decimals | |
| (mismatch 100.0%) | |
| x: array([ 0.040230829268694, 0.952222764492035, 1.16236937046051 , | |
| 1.784623146057129, 0.011601960286498], dtype=float32) | |
| y: array([ 0.040230832993984, 0.95222270488739 , 1.162369251251221, | |
| 1.784623026847839, 0.011601962149143]) | |
| ====================================================================== | |
| FAIL: test_consistency (Tars.tests.test_distribution_samples.TestKumaraswamySample) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "Tars/tests/test_distribution_samples.py", line 293, in test_consistency | |
| assert_array_almost_equal(actual, desired, decimal=15) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/site-packages/numpy/testing/utils.py", line 979, in assert_array_almost_equal | |
| precision=decimal) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/site-packages/numpy/testing/utils.py", line 796, in assert_array_compare | |
| raise AssertionError(msg) | |
| AssertionError: | |
| Arrays are not almost equal to 15 decimals | |
| (mismatch 60.0%) | |
| x: array([ 0.086736172437668, 0.603629767894745, 0.272213965654373, | |
| 0.581992328166962, 0.99227774143219 ], dtype=float32) | |
| y: array([ 0.086736179888248, 0.60362982749939 , 0.272213965654373, | |
| 0.581992328166962, 0.992277801036835]) | |
| ---------------------------------------------------------------------- | |
| Ran 17 tests in 95.046s | |
| FAILED (failures=7) | |
| ubuntu@gando_theano:~/Tars$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ubuntu@gando_theano:~/Tars$ python -m unittest Tars.tests.test_distribution_samples | |
| Using gpu device 0: GeForce GTX TITAN Black (CNMeM is disabled, cuDNN not available) | |
| /home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/site-packages/theano/tensor/signal/downsample.py:6: UserWarning: downsample module has been moved to the theano.tensor.signal.pool module. | |
| "downsample module has been moved to the theano.tensor.signal.pool module.") | |
| F..FFFFF.....F... | |
| ====================================================================== | |
| FAIL: test_consistency (Tars.tests.test_distribution_samples.TestBernoulliSample) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "Tars/tests/test_distribution_samples.py", line 97, in test_consistency | |
| assert_array_almost_equal(actual, desired, decimal=15) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/site-packages/numpy/testing/utils.py", line 979, in assert_array_almost_equal | |
| precision=decimal) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/site-packages/numpy/testing/utils.py", line 796, in assert_array_compare | |
| raise AssertionError(msg) | |
| AssertionError: | |
| Arrays are not almost equal to 15 decimals | |
| (mismatch 100.0%) | |
| x: array([ 0.999997138977051, 0.910126924514771, 0.024815637618303, | |
| 0.353807836771011, 0.161577582359314], dtype=float32) | |
| y: array([ 0.999997150835655, 0.910126924628025, 0.02481563634675 , | |
| 0.353807816572465, 0.161577589091998]) | |
| ====================================================================== | |
| FAIL: test_consistency (Tars.tests.test_distribution_samples.TestBetaSample) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "Tars/tests/test_distribution_samples.py", line 323, in test_consistency | |
| assert_array_almost_equal(actual, desired, decimal=15) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/site-packages/numpy/testing/utils.py", line 979, in assert_array_almost_equal | |
| precision=decimal) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/site-packages/numpy/testing/utils.py", line 796, in assert_array_compare | |
| raise AssertionError(msg) | |
| AssertionError: | |
| Arrays are not almost equal to 15 decimals | |
| (mismatch 40.0%) | |
| x: array([ 0.125119388103485, 0.994993805885315, 0.826709151268005, | |
| 0.8865647315979 , 0.007083556614816], dtype=float32) | |
| y: array([ 0.125119373202324, 0.994993805885315, 0.826709151268005, | |
| 0.886564791202545, 0.007083556614816]) | |
| ====================================================================== | |
| FAIL: test_consistency (Tars.tests.test_distribution_samples.TestCategoricalSample) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "Tars/tests/test_distribution_samples.py", line 211, in test_consistency | |
| assert_array_almost_equal(actual[0], desired, decimal=15) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/site-packages/numpy/testing/utils.py", line 979, in assert_array_almost_equal | |
| precision=decimal) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/site-packages/numpy/testing/utils.py", line 796, in assert_array_compare | |
| raise AssertionError(msg) | |
| AssertionError: | |
| Arrays are not almost equal to 15 decimals | |
| (mismatch 80.0%) | |
| x: array([ 9.994389414787292e-01, 4.618786704213562e-07, | |
| 5.598535062745214e-04, 6.999634365456586e-07, | |
| 9.540292817897256e-13], dtype=float32) | |
| y: array([ 9.994389867572965e-01, 4.618787093000000e-07, | |
| 5.598514063278000e-04, 6.999567125000000e-07, | |
| 9.540000000000000e-13]) | |
| ====================================================================== | |
| FAIL: test_consistency (Tars.tests.test_distribution_samples.TestConcreteSample) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "Tars/tests/test_distribution_samples.py", line 183, in test_consistency | |
| assert_array_almost_equal(actual[0], desired, decimal=15) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/site-packages/numpy/testing/utils.py", line 979, in assert_array_almost_equal | |
| precision=decimal) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/site-packages/numpy/testing/utils.py", line 796, in assert_array_compare | |
| raise AssertionError(msg) | |
| AssertionError: | |
| Arrays are not almost equal to 15 decimals | |
| (mismatch 80.0%) | |
| x: array([ 9.994389414787292e-01, 4.618786704213562e-07, | |
| 5.598535062745214e-04, 6.999634365456586e-07, | |
| 9.540292817897256e-13], dtype=float32) | |
| y: array([ 9.994389867572965e-01, 4.618787093000000e-07, | |
| 5.598514063278000e-04, 6.999567125000000e-07, | |
| 9.540000000000000e-13]) | |
| ====================================================================== | |
| FAIL: test_consistency (Tars.tests.test_distribution_samples.TestDirichletSample) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "Tars/tests/test_distribution_samples.py", line 380, in test_consistency | |
| assert_array_almost_equal(actual, desired, decimal=15) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/site-packages/numpy/testing/utils.py", line 979, in assert_array_almost_equal | |
| precision=decimal) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/site-packages/numpy/testing/utils.py", line 796, in assert_array_compare | |
| raise AssertionError(msg) | |
| AssertionError: | |
| Arrays are not almost equal to 15 decimals | |
| (mismatch 40.0%) | |
| x: array([ 0.125119388103485, 0.87488055229187 , 0. , | |
| 0. , 0. ], dtype=float32) | |
| y: array([ 0.125119373202324, 0.874880611896515, 0. , | |
| 0. , 0. ]) | |
| ====================================================================== | |
| FAIL: test_consistency (Tars.tests.test_distribution_samples.TestGammaSample) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "Tars/tests/test_distribution_samples.py", line 353, in test_consistency | |
| assert_array_almost_equal(actual, desired, decimal=15) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/site-packages/numpy/testing/utils.py", line 979, in assert_array_almost_equal | |
| precision=decimal) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/site-packages/numpy/testing/utils.py", line 796, in assert_array_compare | |
| raise AssertionError(msg) | |
| AssertionError: | |
| Arrays are not almost equal to 15 decimals | |
| (mismatch 100.0%) | |
| x: array([ 0.040230829268694, 0.952222764492035, 1.16236937046051 , | |
| 1.784623146057129, 0.011601960286498], dtype=float32) | |
| y: array([ 0.040230832993984, 0.95222270488739 , 1.162369251251221, | |
| 1.784623026847839, 0.011601962149143]) | |
| ====================================================================== | |
| FAIL: test_consistency (Tars.tests.test_distribution_samples.TestKumaraswamySample) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "Tars/tests/test_distribution_samples.py", line 293, in test_consistency | |
| assert_array_almost_equal(actual, desired, decimal=15) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/site-packages/numpy/testing/utils.py", line 979, in assert_array_almost_equal | |
| precision=decimal) | |
| File "/home/ubuntu/.pyenv/versions/2.7.10/lib/python2.7/site-packages/numpy/testing/utils.py", line 796, in assert_array_compare | |
| raise AssertionError(msg) | |
| AssertionError: | |
| Arrays are not almost equal to 15 decimals | |
| (mismatch 60.0%) | |
| x: array([ 0.086736172437668, 0.603629767894745, 0.272213965654373, | |
| 0.581992328166962, 0.99227774143219 ], dtype=float32) | |
| y: array([ 0.086736179888248, 0.60362982749939 , 0.272213965654373, | |
| 0.581992328166962, 0.992277801036835]) | |
| ---------------------------------------------------------------------- | |
| Ran 17 tests in 7.284s | |
| FAILED (failures=7) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (root)ubuntu@gando_variational:~/Tars$ python -m unittest Tars.tests.test_distribution_samples | |
| /home/ubuntu/.pyenv/versions/anaconda-2.4.0/lib/python2.7/site-packages/theano/tensor/signal/downsample.py:6: UserWarning: downsample module has been moved to the theano.tensor.signal.pool module. | |
| "downsample module has been moved to the theano.tensor.signal.pool module.") | |
| F..FFF.F......... | |
| ====================================================================== | |
| FAIL: test_consistency (Tars.tests.test_distribution_samples.TestBernoulliSample) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "Tars/tests/test_distribution_samples.py", line 97, in test_consistency | |
| assert_array_almost_equal(actual, desired, decimal=15) | |
| File "/home/ubuntu/.pyenv/versions/anaconda-2.4.0/lib/python2.7/site-packages/numpy/testing/utils.py", line 918, in assert_array_almost_equal | |
| precision=decimal) | |
| File "/home/ubuntu/.pyenv/versions/anaconda-2.4.0/lib/python2.7/site-packages/numpy/testing/utils.py", line 739, in assert_array_compare | |
| raise AssertionError(msg) | |
| AssertionError: | |
| Arrays are not almost equal to 15 decimals | |
| (mismatch 100.0%) | |
| x: array([ 0.999997138977051, 0.910126924514771, 0.024815635755658, | |
| 0.353807806968689, 0.161577582359314], dtype=float32) | |
| y: array([ 0.999997150835655, 0.910126924628025, 0.02481563634675 , | |
| 0.353807816572465, 0.161577589091998]) | |
| ====================================================================== | |
| FAIL: test_consistency (Tars.tests.test_distribution_samples.TestBetaSample) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "Tars/tests/test_distribution_samples.py", line 323, in test_consistency | |
| assert_array_almost_equal(actual, desired, decimal=15) | |
| File "/home/ubuntu/.pyenv/versions/anaconda-2.4.0/lib/python2.7/site-packages/numpy/testing/utils.py", line 918, in assert_array_almost_equal | |
| precision=decimal) | |
| File "/home/ubuntu/.pyenv/versions/anaconda-2.4.0/lib/python2.7/site-packages/numpy/testing/utils.py", line 739, in assert_array_compare | |
| raise AssertionError(msg) | |
| AssertionError: | |
| Arrays are not almost equal to 15 decimals | |
| (mismatch 20.0%) | |
| x: array([ 0.125119373202324, 0.994993805885315, 0.826709151268005, | |
| 0.8865647315979 , 0.007083556614816], dtype=float32) | |
| y: array([ 0.125119373202324, 0.994993805885315, 0.826709151268005, | |
| 0.886564791202545, 0.007083556614816]) | |
| ====================================================================== | |
| FAIL: test_consistency (Tars.tests.test_distribution_samples.TestCategoricalSample) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "Tars/tests/test_distribution_samples.py", line 211, in test_consistency | |
| assert_array_almost_equal(actual[0], desired, decimal=15) | |
| File "/home/ubuntu/.pyenv/versions/anaconda-2.4.0/lib/python2.7/site-packages/numpy/testing/utils.py", line 918, in assert_array_almost_equal | |
| precision=decimal) | |
| File "/home/ubuntu/.pyenv/versions/anaconda-2.4.0/lib/python2.7/site-packages/numpy/testing/utils.py", line 739, in assert_array_compare | |
| raise AssertionError(msg) | |
| AssertionError: | |
| Arrays are not almost equal to 15 decimals | |
| (mismatch 80.0%) | |
| x: array([ 9.994390010833740e-01, 4.618786988430656e-07, | |
| 5.598535644821823e-04, 6.999633797022398e-07, | |
| 9.540293902099428e-13], dtype=float32) | |
| y: array([ 9.994389867572965e-01, 4.618787093000000e-07, | |
| 5.598514063278000e-04, 6.999567125000000e-07, | |
| 9.540000000000000e-13]) | |
| ====================================================================== | |
| FAIL: test_consistency (Tars.tests.test_distribution_samples.TestConcreteSample) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "Tars/tests/test_distribution_samples.py", line 183, in test_consistency | |
| assert_array_almost_equal(actual[0], desired, decimal=15) | |
| File "/home/ubuntu/.pyenv/versions/anaconda-2.4.0/lib/python2.7/site-packages/numpy/testing/utils.py", line 918, in assert_array_almost_equal | |
| precision=decimal) | |
| File "/home/ubuntu/.pyenv/versions/anaconda-2.4.0/lib/python2.7/site-packages/numpy/testing/utils.py", line 739, in assert_array_compare | |
| raise AssertionError(msg) | |
| AssertionError: | |
| Arrays are not almost equal to 15 decimals | |
| (mismatch 80.0%) | |
| x: array([ 9.994390010833740e-01, 4.618786988430656e-07, | |
| 5.598535644821823e-04, 6.999633797022398e-07, | |
| 9.540293902099428e-13], dtype=float32) | |
| y: array([ 9.994389867572965e-01, 4.618787093000000e-07, | |
| 5.598514063278000e-04, 6.999567125000000e-07, | |
| 9.540000000000000e-13]) | |
| ====================================================================== | |
| FAIL: test_consistency (Tars.tests.test_distribution_samples.TestGammaSample) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "Tars/tests/test_distribution_samples.py", line 353, in test_consistency | |
| assert_array_almost_equal(actual, desired, decimal=15) | |
| File "/home/ubuntu/.pyenv/versions/anaconda-2.4.0/lib/python2.7/site-packages/numpy/testing/utils.py", line 918, in assert_array_almost_equal | |
| precision=decimal) | |
| File "/home/ubuntu/.pyenv/versions/anaconda-2.4.0/lib/python2.7/site-packages/numpy/testing/utils.py", line 739, in assert_array_compare | |
| raise AssertionError(msg) | |
| AssertionError: | |
| Arrays are not almost equal to 15 decimals | |
| (mismatch 100.0%) | |
| x: array([ 0.040230829268694, 0.952222764492035, 1.16236937046051 , | |
| 1.784623146057129, 0.011601960286498], dtype=float32) | |
| y: array([ 0.040230832993984, 0.95222270488739 , 1.162369251251221, | |
| 1.784623026847839, 0.011601962149143]) | |
| ---------------------------------------------------------------------- | |
| Ran 17 tests in 24.648s | |
| FAILED (failures=5) | |
| (root)ubuntu@gando_variational:~/Tars$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (root)ubuntu@gando_variational:~/Tars$ python -m unittest Tars.tests.test_distribution_samples | |
| /home/ubuntu/.pyenv/versions/anaconda-2.4.0/lib/python2.7/site-packages/theano/tensor/signal/downsample.py:6: UserWarning: downsample module has been moved to the theano.tensor.signal.pool module. | |
| "downsample module has been moved to the theano.tensor.signal.pool module.") | |
| F..FFF.F......... | |
| ====================================================================== | |
| FAIL: test_consistency (Tars.tests.test_distribution_samples.TestBernoulliSample) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "Tars/tests/test_distribution_samples.py", line 97, in test_consistency | |
| assert_array_almost_equal(actual, desired, decimal=15) | |
| File "/home/ubuntu/.pyenv/versions/anaconda-2.4.0/lib/python2.7/site-packages/numpy/testing/utils.py", line 918, in assert_array_almost_equal | |
| precision=decimal) | |
| File "/home/ubuntu/.pyenv/versions/anaconda-2.4.0/lib/python2.7/site-packages/numpy/testing/utils.py", line 739, in assert_array_compare | |
| raise AssertionError(msg) | |
| AssertionError: | |
| Arrays are not almost equal to 15 decimals | |
| (mismatch 100.0%) | |
| x: array([ 0.999997138977051, 0.910126924514771, 0.024815635755658, | |
| 0.353807806968689, 0.161577582359314], dtype=float32) | |
| y: array([ 0.999997150835655, 0.910126924628025, 0.02481563634675 , | |
| 0.353807816572465, 0.161577589091998]) | |
| ====================================================================== | |
| FAIL: test_consistency (Tars.tests.test_distribution_samples.TestBetaSample) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "Tars/tests/test_distribution_samples.py", line 323, in test_consistency | |
| assert_array_almost_equal(actual, desired, decimal=15) | |
| File "/home/ubuntu/.pyenv/versions/anaconda-2.4.0/lib/python2.7/site-packages/numpy/testing/utils.py", line 918, in assert_array_almost_equal | |
| precision=decimal) | |
| File "/home/ubuntu/.pyenv/versions/anaconda-2.4.0/lib/python2.7/site-packages/numpy/testing/utils.py", line 739, in assert_array_compare | |
| raise AssertionError(msg) | |
| AssertionError: | |
| Arrays are not almost equal to 15 decimals | |
| (mismatch 20.0%) | |
| x: array([ 0.125119373202324, 0.994993805885315, 0.826709151268005, | |
| 0.8865647315979 , 0.007083556614816], dtype=float32) | |
| y: array([ 0.125119373202324, 0.994993805885315, 0.826709151268005, | |
| 0.886564791202545, 0.007083556614816]) | |
| ====================================================================== | |
| FAIL: test_consistency (Tars.tests.test_distribution_samples.TestCategoricalSample) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "Tars/tests/test_distribution_samples.py", line 211, in test_consistency | |
| assert_array_almost_equal(actual[0], desired, decimal=15) | |
| File "/home/ubuntu/.pyenv/versions/anaconda-2.4.0/lib/python2.7/site-packages/numpy/testing/utils.py", line 918, in assert_array_almost_equal | |
| precision=decimal) | |
| File "/home/ubuntu/.pyenv/versions/anaconda-2.4.0/lib/python2.7/site-packages/numpy/testing/utils.py", line 739, in assert_array_compare | |
| raise AssertionError(msg) | |
| AssertionError: | |
| Arrays are not almost equal to 15 decimals | |
| (mismatch 80.0%) | |
| x: array([ 9.994390010833740e-01, 4.618786988430656e-07, | |
| 5.598535644821823e-04, 6.999633797022398e-07, | |
| 9.540293902099428e-13], dtype=float32) | |
| y: array([ 9.994389867572965e-01, 4.618787093000000e-07, | |
| 5.598514063278000e-04, 6.999567125000000e-07, | |
| 9.540000000000000e-13]) | |
| ====================================================================== | |
| FAIL: test_consistency (Tars.tests.test_distribution_samples.TestConcreteSample) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "Tars/tests/test_distribution_samples.py", line 183, in test_consistency | |
| assert_array_almost_equal(actual[0], desired, decimal=15) | |
| File "/home/ubuntu/.pyenv/versions/anaconda-2.4.0/lib/python2.7/site-packages/numpy/testing/utils.py", line 918, in assert_array_almost_equal | |
| precision=decimal) | |
| File "/home/ubuntu/.pyenv/versions/anaconda-2.4.0/lib/python2.7/site-packages/numpy/testing/utils.py", line 739, in assert_array_compare | |
| raise AssertionError(msg) | |
| AssertionError: | |
| Arrays are not almost equal to 15 decimals | |
| (mismatch 80.0%) | |
| x: array([ 9.994390010833740e-01, 4.618786988430656e-07, | |
| 5.598535644821823e-04, 6.999633797022398e-07, | |
| 9.540293902099428e-13], dtype=float32) | |
| y: array([ 9.994389867572965e-01, 4.618787093000000e-07, | |
| 5.598514063278000e-04, 6.999567125000000e-07, | |
| 9.540000000000000e-13]) | |
| ====================================================================== | |
| FAIL: test_consistency (Tars.tests.test_distribution_samples.TestGammaSample) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "Tars/tests/test_distribution_samples.py", line 353, in test_consistency | |
| assert_array_almost_equal(actual, desired, decimal=15) | |
| File "/home/ubuntu/.pyenv/versions/anaconda-2.4.0/lib/python2.7/site-packages/numpy/testing/utils.py", line 918, in assert_array_almost_equal | |
| precision=decimal) | |
| File "/home/ubuntu/.pyenv/versions/anaconda-2.4.0/lib/python2.7/site-packages/numpy/testing/utils.py", line 739, in assert_array_compare | |
| raise AssertionError(msg) | |
| AssertionError: | |
| Arrays are not almost equal to 15 decimals | |
| (mismatch 100.0%) | |
| x: array([ 0.040230829268694, 0.952222764492035, 1.16236937046051 , | |
| 1.784623146057129, 0.011601960286498], dtype=float32) | |
| y: array([ 0.040230832993984, 0.95222270488739 , 1.162369251251221, | |
| 1.784623026847839, 0.011601962149143]) | |
| ---------------------------------------------------------------------- | |
| Ran 17 tests in 5.945s | |
| FAILED (failures=5) | |
| (root)ubuntu@gando_variational:~/Tars$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| _____________________ TestBernoulliSample.test_consistency _____________________ | |
| self = <Tars.tests.test_distribution_samples.TestBernoulliSample testMethod=test_consistency> | |
| def test_consistency(self): | |
| # Ensure that returned values stay the same when setting a fixed seed. | |
| mean = 0.5 | |
| bernoulli_sample = Bernoulli_sample(temp=0.1, seed=1234567890) | |
| actual = TestBernoulliSample.get_sample(mean, bernoulli_sample, 5) | |
| desired = [ | |
| 0.9999971508356551, | |
| 0.9101269246280252, | |
| 0.0248156363467501, | |
| 0.3538078165724645, | |
| 0.1615775890919983 | |
| ] | |
| > assert_array_almost_equal(actual, desired, decimal=15) | |
| E AssertionError: | |
| E Arrays are not almost equal to 15 decimals | |
| E | |
| E (mismatch 20.0%) | |
| E x: array([ 0.999997150839051, 0.910126924628025, 0.02481563634675 , | |
| E 0.353807816572465, 0.161577589091998]) | |
| E y: array([ 0.999997150835655, 0.910126924628025, 0.02481563634675 , | |
| E 0.353807816572465, 0.161577589091998]) | |
| Tars/tests/test_distribution_samples.py:97: AssertionError | |
| ______________________ TestLaplaceSample.test_consistency ______________________ | |
| self = <Tars.tests.test_distribution_samples.TestLaplaceSample testMethod=test_consistency> | |
| def test_consistency(self): | |
| # Ensure that returned values stay the same when setting a fixed seed. | |
| mean = 0 | |
| b = 1 | |
| laplace_sample = Laplace_sample(seed=1234567890) | |
| actual = TestLaplaceSample.get_sample(mean, b, laplace_sample, 5) | |
| desired = [ | |
| 1.1390253305435181, | |
| -0.0570014975965023, | |
| 0.4830891788005829, | |
| -0.0264561157673597, | |
| -2.0842888355255127 | |
| ] | |
| > assert_array_almost_equal(actual, desired, decimal=15) | |
| E AssertionError: | |
| E Arrays are not almost equal to 15 decimals | |
| E | |
| E (mismatch 40.0%) | |
| E x: array([ 1.139025330543518, -0.057001508772373, 0.483089178800583, | |
| E -0.026456104591489, -2.084288835525513], dtype=float32) | |
| E y: array([ 1.139025330543518, -0.057001497596502, 0.483089178800583, | |
| E -0.02645611576736 , -2.084288835525513]) | |
| Tars/tests/test_distribution_samples.py:257: AssertionError | |
| ===================== 3 failed, 64 passed in 46.86 seconds ===================== | |
| The command "PYTHONPATH=$PWD:$PYTHONPATH py.test" exited with 1. | |
| Done. Your build exited with 1. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment