Skip to content

Instantly share code, notes, and snippets.

@certik
Created September 4, 2012 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save certik/3625943 to your computer and use it in GitHub Desktop.
Save certik/3625943 to your computer and use it in GitHub Desktop.
(pyx)vagrant@precise32:~/repos/numpy/tools$ nosetests ../pyx/local/lib/python2.7/site-packages/numpy/random/tests/test_random.py
......F...F.....F....FF.F.......F...F..F..........
======================================================================
FAIL: test_chisquare (test_random.TestRandomDist)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/repos/numpy/pyx/local/lib/python2.7/site-packages/numpy/random/tests/test_random.py", line 153, in test_chisquare
np.testing.assert_array_almost_equal(actual, desired, decimal=15)
File "/home/vagrant/repos/numpy/pyx/local/lib/python2.7/site-packages/numpy/testing/utils.py", line 791, in assert_array_almost_equal
header=('Arrays are not almost equal to %d decimals' % decimal))
File "/home/vagrant/repos/numpy/pyx/local/lib/python2.7/site-packages/numpy/testing/utils.py", line 627, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 15 decimals
(mismatch 66.6666666667%)
x: array([[ 63.87858176, 68.68407749],
[ 65.77116117, 47.09686762],
[ 72.38284032, 74.18408615]])
y: array([[ 63.87858176, 68.68407749],
[ 65.77116117, 47.09686762],
[ 72.38284032, 74.18408615]])
======================================================================
FAIL: test_gamma (test_random.TestRandomDist)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/repos/numpy/pyx/local/lib/python2.7/site-packages/numpy/random/tests/test_random.py", line 189, in test_gamma
np.testing.assert_array_almost_equal(actual, desired, decimal=15)
File "/home/vagrant/repos/numpy/pyx/local/lib/python2.7/site-packages/numpy/testing/utils.py", line 791, in assert_array_almost_equal
header=('Arrays are not almost equal to %d decimals' % decimal))
File "/home/vagrant/repos/numpy/pyx/local/lib/python2.7/site-packages/numpy/testing/utils.py", line 627, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 15 decimals
(mismatch 33.3333333333%)
x: array([[ 24.60509189, 28.54993563],
[ 26.1347611 , 12.56988483],
[ 31.71863276, 33.30143303]])
y: array([[ 24.60509189, 28.54993563],
[ 26.1347611 , 12.56988483],
[ 31.71863276, 33.30143303]])
======================================================================
FAIL: test_lognormal (test_random.TestRandomDist)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/repos/numpy/pyx/local/lib/python2.7/site-packages/numpy/random/tests/test_random.py", line 237, in test_lognormal
np.testing.assert_array_almost_equal(actual, desired, decimal=15)
File "/home/vagrant/repos/numpy/pyx/local/lib/python2.7/site-packages/numpy/testing/utils.py", line 791, in assert_array_almost_equal
header=('Arrays are not almost equal to %d decimals' % decimal))
File "/home/vagrant/repos/numpy/pyx/local/lib/python2.7/site-packages/numpy/testing/utils.py", line 627, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 15 decimals
(mismatch 66.6666666667%)
x: array([[ 16.50698632, 36.54846706],
[ 22.678866 , 0.71617561],
[ 65.72798502, 86.84341601]])
y: array([[ 16.50698632, 36.54846706],
[ 22.678866 , 0.71617561],
[ 65.72798502, 86.84341601]])
======================================================================
FAIL: test_noncentral_chisquare (test_random.TestRandomDist)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/repos/numpy/pyx/local/lib/python2.7/site-packages/numpy/random/tests/test_random.py", line 286, in test_noncentral_chisquare
np.testing.assert_array_almost_equal(actual, desired, decimal=15)
File "/home/vagrant/repos/numpy/pyx/local/lib/python2.7/site-packages/numpy/testing/utils.py", line 791, in assert_array_almost_equal
header=('Arrays are not almost equal to %d decimals' % decimal))
File "/home/vagrant/repos/numpy/pyx/local/lib/python2.7/site-packages/numpy/testing/utils.py", line 627, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 15 decimals
(mismatch 16.6666666667%)
x: array([[ 23.91905354, 13.35324693],
[ 31.22452661, 16.60047399],
[ 5.03461598, 17.94973089]])
y: array([[ 23.91905354, 13.35324693],
[ 31.22452661, 16.60047399],
[ 5.03461598, 17.94973089]])
======================================================================
FAIL: test_noncentral_f (test_random.TestRandomDist)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/repos/numpy/pyx/local/lib/python2.7/site-packages/numpy/random/tests/test_random.py", line 295, in test_noncentral_f
np.testing.assert_array_almost_equal(actual, desired, decimal=15)
File "/home/vagrant/repos/numpy/pyx/local/lib/python2.7/site-packages/numpy/testing/utils.py", line 791, in assert_array_almost_equal
header=('Arrays are not almost equal to %d decimals' % decimal))
File "/home/vagrant/repos/numpy/pyx/local/lib/python2.7/site-packages/numpy/testing/utils.py", line 627, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 15 decimals
(mismatch 16.6666666667%)
x: array([[ 1.405981 , 0.34207973],
[ 3.57715069, 7.92632663],
[ 0.43741599, 1.17742088]])
y: array([[ 1.405981 , 0.34207973],
[ 3.57715069, 7.92632663],
[ 0.43741599, 1.17742088]])
======================================================================
FAIL: test_pareto (test_random.TestRandomDist)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/repos/numpy/pyx/local/lib/python2.7/site-packages/numpy/random/tests/test_random.py", line 311, in test_pareto
np.testing.assert_array_almost_equal(actual, desired, decimal=15)
File "/home/vagrant/repos/numpy/pyx/local/lib/python2.7/site-packages/numpy/testing/utils.py", line 791, in assert_array_almost_equal
header=('Arrays are not almost equal to %d decimals' % decimal))
File "/home/vagrant/repos/numpy/pyx/local/lib/python2.7/site-packages/numpy/testing/utils.py", line 627, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 15 decimals
(mismatch 16.6666666667%)
x: array([[ 2.46852460e+03, 1.41286881e+03],
[ 5.28287797e+07, 6.57720981e+07],
[ 1.40840323e+02, 1.98390255e+05]])
y: array([[ 2.46852460e+03, 1.41286881e+03],
[ 5.28287797e+07, 6.57720981e+07],
[ 1.40840323e+02, 1.98390255e+05]])
======================================================================
FAIL: test_rayleigh (test_random.TestRandomDist)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/repos/numpy/pyx/local/lib/python2.7/site-packages/numpy/random/tests/test_random.py", line 335, in test_rayleigh
np.testing.assert_array_almost_equal(actual, desired, decimal=15)
File "/home/vagrant/repos/numpy/pyx/local/lib/python2.7/site-packages/numpy/testing/utils.py", line 791, in assert_array_almost_equal
header=('Arrays are not almost equal to %d decimals' % decimal))
File "/home/vagrant/repos/numpy/pyx/local/lib/python2.7/site-packages/numpy/testing/utils.py", line 627, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 15 decimals
(mismatch 33.3333333333%)
x: array([[ 13.88824965, 13.38331834],
[ 20.95413364, 21.08285016],
[ 11.06066537, 17.35468506]])
y: array([[ 13.88824965, 13.38331834],
[ 20.95413364, 21.08285016],
[ 11.06066537, 17.35468506]])
======================================================================
FAIL: test_standard_gamma (test_random.TestRandomDist)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/repos/numpy/pyx/local/lib/python2.7/site-packages/numpy/random/tests/test_random.py", line 359, in test_standard_gamma
np.testing.assert_array_almost_equal(actual, desired, decimal=15)
File "/home/vagrant/repos/numpy/pyx/local/lib/python2.7/site-packages/numpy/testing/utils.py", line 791, in assert_array_almost_equal
header=('Arrays are not almost equal to %d decimals' % decimal))
File "/home/vagrant/repos/numpy/pyx/local/lib/python2.7/site-packages/numpy/testing/utils.py", line 627, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 15 decimals
(mismatch 66.6666666667%)
x: array([[ 5.50841531, 6.6295347 ],
[ 5.93988485, 2.31044849],
[ 7.54838614, 8.01275609]])
y: array([[ 5.50841531, 6.6295347 ],
[ 5.93988485, 2.31044849],
[ 7.54838614, 8.01275609]])
======================================================================
FAIL: test_triangular (test_random.TestRandomDist)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/repos/numpy/pyx/local/lib/python2.7/site-packages/numpy/random/tests/test_random.py", line 384, in test_triangular
np.testing.assert_array_almost_equal(actual, desired, decimal=15)
File "/home/vagrant/repos/numpy/pyx/local/lib/python2.7/site-packages/numpy/testing/utils.py", line 791, in assert_array_almost_equal
header=('Arrays are not almost equal to %d decimals' % decimal))
File "/home/vagrant/repos/numpy/pyx/local/lib/python2.7/site-packages/numpy/testing/utils.py", line 627, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 15 decimals
(mismatch 33.3333333333%)
x: array([[ 12.68117179, 12.41292061],
[ 16.20131377, 16.25692139],
[ 11.20400691, 14.49781448]])
y: array([[ 12.68117179, 12.41292061],
[ 16.20131377, 16.25692139],
[ 11.20400691, 14.49781448]])
----------------------------------------------------------------------
Ran 50 tests in 0.042s
FAILED (failures=9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment