ufldl_tutorial icon indicating copy to clipboard operation
ufldl_tutorial copied to clipboard

the zca in linear_decoder_exercise.py you writed is wrong

Open TorosFanny opened this issue 10 years ago • 0 comments

You should add a np.sqrt above s+epsilon like below.

(u, s, vt) = np.linalg.svd(sigma) zca_white = u.dot(np.diag(1 / np.sqrt(s + epsilon))).dot(u.transpose())

TorosFanny avatar Oct 21 '14 09:10 TorosFanny