-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
check_symmetric: adapt tolerance to data type #11159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This sounds reasonable |
I would like to work on this. I need to set tol value only for float16 and float32? |
perhaps. try implementing and testing it, submit a PR, and we can review
whether it seems to be the right solution
|
I keep getting this error, I've tried multiples
After tracing it down it seems that input |
seems fixed by #13554. Please reopen if you still run into this issue. |
Description
manifold.MDS
by default would compute the distance matrix with the same data type as the input. Then the function_smacof_single
callscheck_symmetric
without atol
argument. Which defaults to 1e-10. If the input matrix contains float32, then the distance matrix does too. And this tolerance is too small for that type.I guess the best solution would be to make
check_symmetric
adapt the default tolerance to the data type. I might suggest 1e-4 for float32 and and 1e-2 for float16.Steps/Code to Reproduce
Given the random initialization, you might need a few run to exhibit the result.
Expected Results
Not raising an exception.
Actual Results
Versions
The text was updated successfully, but these errors were encountered: