-
-
Notifications
You must be signed in to change notification settings - Fork 648
1 regression tests available device #3335 #3403
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
1 regression tests available device #3335 #3403
Conversation
…al_bias.py, test_geometric_mean_absolute_error.py
…onal_bias.py test_geometric_mean_absolute_error.py
(torch.rand(size=(100, 1)), torch.rand(size=(100, 1)), 20), | ||
] | ||
return test_cases | ||
np_sum = (2 * np.abs(np_y_pred - np_y) / (np.abs(np_y_pred) + np.abs(np_y))).sum() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use torch everywhere such that we could also remove import numpy as np
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, but numpy is still used in _test_distrib_compute
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can do the same there: error = 2 * torch.abs(pred - ground_truth) / (torch.abs(pred) + torch.abs(ground_truth))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, but wouldn't it make more sense to do a separate PR to do a pass on distributed tests?
test_canberra_metric.py
test_fractional_absolute_error.py
test_fractional_bias.py
test_geometric_mean_absolute_error.py