typo in Ch 5, P 160
mzakariaCERN opened this issue · 1 comments
mzakariaCERN commented
eigen_pairs = [(np.abs(eigen_vals[i]), eigen_vecs[:i]) for i in range(len(eigen_vals))] # the error, silent killer!
eigen_pairs = [(np.abs(eigen_vals[i]), eigen_vecs[i]) for i in range(len(eigen_vals))] # correct version!
I would be happy to be mentioned. If the error report was valid.
mzakariaCERN commented
I mistakenly readh eigen_vecs[:,i] as eigen_vecs[:i]
so there was no error to begin with!