[Numpy-discussion] confusion about eigenvector

devnew at gmail.com devnew at gmail.com
Thu Feb 28 09:41:41 EST 2008


> Arnar wrote
> from scipy import linalg
> facearray-=facearray.mean(0) #mean centering
> u, s, vt = linalg.svd(facearray, 0)
> scores = u*s
> facespace = vt.T

hi Arnar
when i do this i get these
u =< 'numpy.core.defmatrix.matrix'> (4, 4)
that matches the eigenvectors matrix in my previous data
s=< 'numpy.ndarray'> (4,)
and
vt=<'numpy.core.defmatrix.matrix'> (4, 12)

here
scores=u*s causes a matrix not aligned error..

is there something wrong in the calculation?
D



More information about the NumPy-Discussion mailing list