[SciPy-User] scipy.optimize.nnls - Incompatible Dimensions

Calvin Morrison mutantturkey@gmail....
Mon Feb 18 13:45:32 CST 2013


Hi,

I am trying to use scipy's nnls function. Unfortunately I am getting
an "incompatible dimensions error, but my dimensions look correct:

>> print matrix.shape
(13969, 4096)

>> print counts.shape
(4096,)

>> solutions, rnorm = scipy.optimize.nnls(trained_matrix, counts)
*** ValueError: incompatible dimensions

Any ideas?

Thanks,
Calvin Morrison


More information about the SciPy-User mailing list