Skip to content

Commit

Permalink
rtol=4 * 1e-4, atol=2 * 1e-4
Browse files Browse the repository at this point in the history
  • Loading branch information
mshr-h committed Aug 10, 2024
1 parent 33f8f3f commit f3aecaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_sklearn_decomposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def _fit_model_pca(self, model, precompute=False):

torch_model = hummingbird.ml.convert(model, "torch")
self.assertTrue(torch_model is not None)
np.testing.assert_allclose(model.transform(X_test), torch_model.transform(X_test), rtol=1e-6, atol=1e-4)
np.testing.assert_allclose(model.transform(X_test), torch_model.transform(X_test), rtol=4 * 1e-4, atol=2 * 1e-4)

# PCA n_components none
def test_pca_converter_none(self):
Expand Down

0 comments on commit f3aecaf

Please sign in to comment.