[Numpy-discussion] confusion about eigenvector
devnew@gmai...
devnew@gmai...
Thu Feb 28 08:41:41 CST 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