You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In line 293 of contrastive/init.py: w, v = LA.eig(sigma)
It seems that np.linalg.eig sometimes gives complex eigenvalues due to truncation error even though my sigmas are symmetrical matrices. Would it be better to replace the line with the following?
w, v = np.linalg.eigh(sigma)
The text was updated successfully, but these errors were encountered:
In line 293 of contrastive/init.py:
w, v = LA.eig(sigma)
It seems that np.linalg.eig sometimes gives complex eigenvalues due to truncation error even though my sigmas are symmetrical matrices. Would it be better to replace the line with the following?
w, v = np.linalg.eigh(sigma)
The text was updated successfully, but these errors were encountered: