Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rmetric test failed on my machine #55

Closed
Jerryzcn opened this issue Jun 13, 2016 · 8 comments
Closed

rmetric test failed on my machine #55

Jerryzcn opened this issue Jun 13, 2016 · 8 comments

Comments

@Jerryzcn
Copy link
Collaborator

Jerryzcn commented Jun 13, 2016

rmetric did not pass the test

FAIL: Loads the results from a matlab run and checks that our results

Traceback (most recent call last):
File "/home/jerry/anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/jerry/anaconda/lib/python2.7/site-packages/megaman/geometry/tests/test_rmetric.py", line 72, in test_equal_original
assert_allclose( Gtest, G, tol)
File "/home/jerry/anaconda/lib/python2.7/site-packages/numpy/testing/utils.py", line 1391, in assert_allclose
verbose=verbose, header=header)
File "/home/jerry/anaconda/lib/python2.7/site-packages/numpy/testing/utils.py", line 733, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Not equal to tolerance rtol=1.04681e+11, atol=0

(mismatch 0.25%)
x: array([[[ 3.104310e+15, 2.125112e+01],
[ 2.119583e+01, 5.400388e+01]],
...
y: array([[[ 4.421211e+15, 4.985776e+01],
[ 5.055786e+01, 5.400388e+01]],
...
-------------------- >> begin captured stdout << ---------------------
('phi.shape = ', (200, 2))
('G.shape = ', (200, 2, 2))
('H.shape = ', (200, 2, 2))
('L.shape = ', (200, 200))

--------------------- >> end captured stdout << ----------------------


Ran 140 tests in 7.220s

FAILED (failures=1)
make: *** [test] Error 1

@Jerryzcn Jerryzcn changed the title make test failed on my machine rmetric test failed on my machine Jun 13, 2016
@jmcq89
Copy link
Collaborator

jmcq89 commented Jun 13, 2016

I just pulled down a fresh clone of the master branch and ran all the test and they all passed.

Can you get a diff between when it passed for you and when it started failing? Nothing in those two recent merges ought to affect the rmetric code or the test function.

@Jerryzcn
Copy link
Collaborator Author

Jerryzcn commented Jun 14, 2016

weird. I also cloned a fresh master branch.
I also have some warning before that. Do u have these warning?
cd /tmp/megaman && nosetests megaman
..................../home/jerry/anaconda/lib/python2.7/site-packages/megaman/utils/eigendecomp.py:177: UserWarning: AMG works better for sparse matrices
warnings.warn("AMG works better for sparse matrices")
/home/jerry/anaconda/lib/python2.7/site-packages/pyamg/aggregation/aggregation.py:214: SparseEfficiencyWarning: Implicit conversion of A to CSR
SparseEfficiencyWarning)
.../home/jerry/anaconda/lib/python2.7/site-packages/megaman/utils/eigendecomp.py:54: UserWarning: lobpcg does not perform well with small matrices or with large numbers of vectors. Switching to 'dense'
warnings.warn("lobpcg does not perform well with small matrices or "

......................................................................................................F..............

@jmcq89
Copy link
Collaborator

jmcq89 commented Jun 14, 2016

Yes I have those warnings. They're sparse efficiency warnings when computing the affinity matrix and a warning about the selected eigen solver.

I'm very curious why you seem to get a failure on the rmetric but I'm not getting it...

@Jerryzcn
Copy link
Collaborator Author

what blas are u using? I'm using openblas
scipy 0.17.1 np111py27_blas_openblas_200 [blas_openblas] conda-forge
numpy 1.11.0 py27_blas_openblas_200 [blas_openblas] conda-forge
nose 1.3.7 py27_1

@jmcq89
Copy link
Collaborator

jmcq89 commented Jun 16, 2016

I'm using anaconda

Here's the relevant package info from conda installation:

jmcq@spc114:~$ conda list

packages in environment at /home/jmcq/miniconda2:

nose 1.3.7 py27_0 defaults
numpy 1.10.4 py27_1 defaults
scipy 0.17.0 np110py27_2 defaults

@Jerryzcn
Copy link
Collaborator Author

@jmcq89 okay, i downgrade my numpy to 1.10 which does not use openblas, and the test passed.

@jakevdp
Copy link
Collaborator

jakevdp commented Jun 29, 2016

Any idea why 1.11 is causing a failure?

@Jerryzcn
Copy link
Collaborator Author

Could be openblas, but i'm not sure right now. let's discuss on #60

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants