scikit-learn/scikit-learn — pull request #1421 by kuantkid (2012-11-28 09:05:15+00:00)
Title: FIX spectral embedding test fail on master

The error in issue #1420 results from that `lobpcg` solver with `amg` preconditioner need sparse input. The `rbf` affinity will return a dense matrices as adjacency matrices.

I have change it to use `nearest_neighbors` which will have a sparse adjacency matrices and the test passes on my box. And when using `amg` solver, an warning will be issued if the laplacian matrix is not sparse.

Would you please have a look at this @satra @GaelVaroquaux :)