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
I suspect that the behavior may be related to the way the function's tol argument is passed to both rtol and atol in psd = np.allclose(np.dot(v.T * s, v), cov, rtol=tol, atol=tol). The default of tol=1e-8 is much lower than np.isclose's default for rtol=1e-5.
The text was updated successfully, but these errors were encountered:
Passing a clearly positive definite covariance matrix with
float32
data type causes the warningUsing the same matrix with
float64
does not raise the warning.Steps to reproduce:
This was raised as a question at StackOverflow.
I suspect that the behavior may be related to the way the function's
tol
argument is passed to bothrtol
andatol
inpsd = np.allclose(np.dot(v.T * s, v), cov, rtol=tol, atol=tol)
. The default oftol=1e-8
is much lower thannp.isclose
's default forrtol=1e-5
.The text was updated successfully, but these errors were encountered: