Skip to content

[MRG] make lobpcg test pass with reference and ATLAS impl of LAPACK - #2928

Merged
ogrisel merged 2 commits into
scikit-learn:masterfrom
ogrisel:fix-linalgerror
Mar 7, 2014
Merged

ogrisel merged 2 commits into
scikit-learn:masterfrom
ogrisel:fix-linalgerror

Conversation

@ogrisel

@ogrisel ogrisel commented Mar 3, 2014

Copy link
Copy Markdown
Member

This is a fix for #2924.

I would appreciate a review by @GaelVaroquaux or anybody else who had prior experience with SciPy eigensolvers.

@ogrisel

ogrisel commented Mar 3, 2014

Copy link
Copy Markdown
Member Author

I tested this under a recent Ubuntu with:

  • for the reference LAPACK
sudo update-alternatives --set liblapack.so.3 /usr/lib/lapack/liblapack.so.3
nosetests -v -s sklearn/cluster/tests/test_spectral.py:test_spectral_lobpcg_mode
  • for the ATLAS implementation:
sudo update-alternatives --set liblapack.so.3 /usr/lib/atlas-base/atlas/liblapack.so.3
nosetests -v -s sklearn/cluster/tests/test_spectral.py:test_spectral_lobpcg_mode

@larsmans

larsmans commented Mar 3, 2014

Copy link
Copy Markdown
Member

Confirmed that this works with the default LAPACK.

@GaelVaroquaux

Copy link
Copy Markdown
Member

It seems like it fails under travis.

This lopcg solver is so unstable...

@ogrisel

ogrisel commented Mar 4, 2014

Copy link
Copy Markdown
Member Author

Weird it failed only in 1 out of the 3 runs and travis is arguably using the same LAPACK implementation for the 3 runs and the data is deterministically generated (controlled via a random seed)...

@GaelVaroquaux any suggestion?

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same when pulling 13c477f on ogrisel:fix-linalgerror into e721508 on scikit-learn:master.

@ogrisel

ogrisel commented Mar 7, 2014

Copy link
Copy Markdown
Member Author

Shall we merge this?

@ogrisel

ogrisel commented Mar 7, 2014

Copy link
Copy Markdown
Member Author

I just checked that the tests pass with OSX Accelerate BLAS/LAPACK.

@ogrisel

ogrisel commented Mar 7, 2014

Copy link
Copy Markdown
Member Author

I also tested with numpy built against OpenBLAS (hence the reference impl of LAPACK included in OpenBLAS) and this test passes.

@larsmans

larsmans commented Mar 7, 2014

Copy link
Copy Markdown
Member

+1, I thought we'd already merged this one :)

ogrisel added a commit that referenced this pull request Mar 7, 2014
[MRG] make lobpcg test pass with reference and ATLAS impl of LAPACK
@ogrisel
ogrisel merged commit c523d1b into scikit-learn:master Mar 7, 2014
@ogrisel

ogrisel commented Mar 7, 2014

Copy link
Copy Markdown
Member Author

Merged then!

@GaelVaroquaux

Copy link
Copy Markdown
Member

Works on my laptop and my desktop. Good job.

@ogrisel

ogrisel commented Mar 7, 2014

Copy link
Copy Markdown
Member Author

Great.

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

Successfully merging this pull request may close these issues.

4 participants