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

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


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

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

Any ideas?

Calvin Morrison

More information about the SciPy-User mailing list