-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-37522][PYTHON][TESTS] Fix MultilayerPerceptronClassifierTest.test_raw_and_probability_prediction #34784
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
Conversation
…est_raw_and_probability_prediction
cc @LuciferYang and @HyukjinKwon |
Test build #145863 has finished for PR 34784 at commit
|
Thank you so much, @zero323 and @huaxingao ! |
…est_raw_and_probability_prediction This PR aims to update a PySpark unit test case by increasing the tolerance by `10%` from `0.1` to `0.11`. ``` $ java -version openjdk version "17.0.1" 2021-10-19 LTS OpenJDK Runtime Environment Zulu17.30+15-CA (build 17.0.1+12-LTS) OpenJDK 64-Bit Server VM Zulu17.30+15-CA (build 17.0.1+12-LTS, mixed mode, sharing) $ build/sbt test:package $ python/run-tests --testname 'pyspark.ml.tests.test_algorithms MultilayerPerceptronClassifierTest.test_raw_and_probability_prediction' --python-executables=python3 ... ====================================================================== FAIL: test_raw_and_probability_prediction (pyspark.ml.tests.test_algorithms.MultilayerPerceptronClassifierTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/dongjoon/APACHE/spark-merge/python/pyspark/ml/tests/test_algorithms.py", line 104, in test_raw_and_probability_prediction self.assertTrue(np.allclose(result.rawPrediction, expected_rawPrediction, rtol=0.102)) AssertionError: False is not true ---------------------------------------------------------------------- Ran 1 test in 7.385s FAILED (failures=1) ``` No. Manually on native AppleSilicon Java 17. Closes #34784 from dongjoon-hyun/SPARK-37522. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit eec9fec) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Merged to master/3.2. |
Kubernetes integration test starting |
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.
Lgtm2
Kubernetes integration test status failure |
LGTM +1 |
…est_raw_and_probability_prediction This PR aims to update a PySpark unit test case by increasing the tolerance by `10%` from `0.1` to `0.11`. ``` $ java -version openjdk version "17.0.1" 2021-10-19 LTS OpenJDK Runtime Environment Zulu17.30+15-CA (build 17.0.1+12-LTS) OpenJDK 64-Bit Server VM Zulu17.30+15-CA (build 17.0.1+12-LTS, mixed mode, sharing) $ build/sbt test:package $ python/run-tests --testname 'pyspark.ml.tests.test_algorithms MultilayerPerceptronClassifierTest.test_raw_and_probability_prediction' --python-executables=python3 ... ====================================================================== FAIL: test_raw_and_probability_prediction (pyspark.ml.tests.test_algorithms.MultilayerPerceptronClassifierTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/dongjoon/APACHE/spark-merge/python/pyspark/ml/tests/test_algorithms.py", line 104, in test_raw_and_probability_prediction self.assertTrue(np.allclose(result.rawPrediction, expected_rawPrediction, rtol=0.102)) AssertionError: False is not true ---------------------------------------------------------------------- Ran 1 test in 7.385s FAILED (failures=1) ``` No. Manually on native AppleSilicon Java 17. Closes apache#34784 from dongjoon-hyun/SPARK-37522. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit eec9fec) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
…est_raw_and_probability_prediction This PR aims to update a PySpark unit test case by increasing the tolerance by `10%` from `0.1` to `0.11`. ``` $ java -version openjdk version "17.0.1" 2021-10-19 LTS OpenJDK Runtime Environment Zulu17.30+15-CA (build 17.0.1+12-LTS) OpenJDK 64-Bit Server VM Zulu17.30+15-CA (build 17.0.1+12-LTS, mixed mode, sharing) $ build/sbt test:package $ python/run-tests --testname 'pyspark.ml.tests.test_algorithms MultilayerPerceptronClassifierTest.test_raw_and_probability_prediction' --python-executables=python3 ... ====================================================================== FAIL: test_raw_and_probability_prediction (pyspark.ml.tests.test_algorithms.MultilayerPerceptronClassifierTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/dongjoon/APACHE/spark-merge/python/pyspark/ml/tests/test_algorithms.py", line 104, in test_raw_and_probability_prediction self.assertTrue(np.allclose(result.rawPrediction, expected_rawPrediction, rtol=0.102)) AssertionError: False is not true ---------------------------------------------------------------------- Ran 1 test in 7.385s FAILED (failures=1) ``` No. Manually on native AppleSilicon Java 17. Closes apache#34784 from dongjoon-hyun/SPARK-37522. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit eec9fec) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
…est_raw_and_probability_prediction This PR aims to update a PySpark unit test case by increasing the tolerance by `10%` from `0.1` to `0.11`. ``` $ java -version openjdk version "17.0.1" 2021-10-19 LTS OpenJDK Runtime Environment Zulu17.30+15-CA (build 17.0.1+12-LTS) OpenJDK 64-Bit Server VM Zulu17.30+15-CA (build 17.0.1+12-LTS, mixed mode, sharing) $ build/sbt test:package $ python/run-tests --testname 'pyspark.ml.tests.test_algorithms MultilayerPerceptronClassifierTest.test_raw_and_probability_prediction' --python-executables=python3 ... ====================================================================== FAIL: test_raw_and_probability_prediction (pyspark.ml.tests.test_algorithms.MultilayerPerceptronClassifierTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/dongjoon/APACHE/spark-merge/python/pyspark/ml/tests/test_algorithms.py", line 104, in test_raw_and_probability_prediction self.assertTrue(np.allclose(result.rawPrediction, expected_rawPrediction, rtol=0.102)) AssertionError: False is not true ---------------------------------------------------------------------- Ran 1 test in 7.385s FAILED (failures=1) ``` No. Manually on native AppleSilicon Java 17. Closes apache#34784 from dongjoon-hyun/SPARK-37522. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit eec9fec) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
What changes were proposed in this pull request?
This PR aims to update a PySpark unit test case by increasing the tolerance by
10%
from0.1
to0.11
.Why are the changes needed?
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Manually on native AppleSilicon Java 17.