28 Feb
2008
28 Feb
'08
7:41 a.m.
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