On Thu, May 15, 2014 at 12:56:09AM -0500, Kyle Kastner wrote:
> #Broken?
> X = np.random.randn(100, 64)
> D = np.random.randn(2, 64)
> sparse_encode(X, D, algorithm='omp', n_nonzero_coefs=None)

After a quick glance, could it be that with a dimension of 2,
n_nonzero_coefs, which defaults to int(.1 * n_features) is zero? When I
put it manually to 1, this work.

This parameter is what I believe would control 'k' in a K-SVD. I am a bit
surprised that you are leaving it to its default value.

HTH,

Gaƫl

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to