|
17 | 17 |
|
18 | 18 | import unittest
|
19 | 19 |
|
| 20 | +from pyspark.testing.utils import eventually, timeout |
20 | 21 | from pyspark.ml.tests.test_classification import ClassificationTestsMixin
|
21 | 22 | from pyspark.testing.connectutils import ReusedConnectTestCase
|
22 | 23 |
|
23 | 24 |
|
24 |
| -# TODO(SPARK-52764): Re-enable this test after fixing the flakiness. |
25 |
| -@unittest.skip("Disabled due to flakiness, should be enabled after fixing the issue") |
26 | 25 | class ClassificationParityTests(ClassificationTestsMixin, ReusedConnectTestCase):
|
27 |
| - pass |
| 26 | + @eventually(timeout=60, catch_timeout=True) |
| 27 | + @timeout(timeout=10) |
| 28 | + def test_binary_logistic_regression_summary(self): |
| 29 | + super().test_binary_logistic_regression_summary() |
| 30 | + |
| 31 | + @eventually(timeout=60, catch_timeout=True) |
| 32 | + @timeout(timeout=10) |
| 33 | + def test_multiclass_logistic_regression_summary(self): |
| 34 | + super().test_multiclass_logistic_regression_summary() |
| 35 | + |
| 36 | + @eventually(timeout=60, catch_timeout=True) |
| 37 | + @timeout(timeout=10) |
| 38 | + def test_linear_svc(self): |
| 39 | + super().test_linear_svc() |
| 40 | + |
| 41 | + @eventually(timeout=60, catch_timeout=True) |
| 42 | + @timeout(timeout=10) |
| 43 | + def test_factorization_machine(self): |
| 44 | + super().test_factorization_machine() |
| 45 | + |
| 46 | + @eventually(timeout=60, catch_timeout=True) |
| 47 | + @timeout(timeout=10) |
| 48 | + def test_binary_random_forest_classifier(self): |
| 49 | + super().test_binary_random_forest_classifier() |
| 50 | + |
| 51 | + @eventually(timeout=60, catch_timeout=True) |
| 52 | + @timeout(timeout=10) |
| 53 | + def test_multiclass_random_forest_classifier(self): |
| 54 | + super().test_multiclass_random_forest_classifier() |
| 55 | + |
| 56 | + @eventually(timeout=60, catch_timeout=True) |
| 57 | + @timeout(timeout=10) |
| 58 | + def test_mlp(self): |
| 59 | + super().test_mlp() |
28 | 60 |
|
29 | 61 |
|
30 | 62 | if __name__ == "__main__":
|
|
0 commit comments