Skip to content

Commit 3ef72cf

Browse files
committed
test
test nit
1 parent 1570206 commit 3ef72cf

File tree

1 file changed

+35
-3
lines changed

1 file changed

+35
-3
lines changed

python/pyspark/ml/tests/connect/test_parity_classification.py

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,46 @@
1717

1818
import unittest
1919

20+
from pyspark.testing.utils import eventually, timeout
2021
from pyspark.ml.tests.test_classification import ClassificationTestsMixin
2122
from pyspark.testing.connectutils import ReusedConnectTestCase
2223

2324

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")
2625
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()
2860

2961

3062
if __name__ == "__main__":

0 commit comments

Comments
 (0)