You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2021/12/02 17:50:00 UTC

[jira] [Commented] (SPARK-37522) Fix MultilayerPerceptronClassifierTest.test_raw_and_probability_prediction

    [ https://issues.apache.org/jira/browse/SPARK-37522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17452531#comment-17452531 ] 

Apache Spark commented on SPARK-37522:
--------------------------------------

User 'dongjoon-hyun' has created a pull request for this issue:
https://github.com/apache/spark/pull/34784

> Fix MultilayerPerceptronClassifierTest.test_raw_and_probability_prediction
> --------------------------------------------------------------------------
>
>                 Key: SPARK-37522
>                 URL: https://issues.apache.org/jira/browse/SPARK-37522
>             Project: Spark
>          Issue Type: Sub-task
>          Components: PySpark, Tests
>    Affects Versions: 3.3.0
>            Reporter: Dongjoon Hyun
>            Priority: Major
>
> The failure happens on Java 17 native Apple Silicon version on Python 3.9/3.10.
> {code}
> $ 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)
> {code}
> {code}
> ======================================================================
> 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)
> Had test failures in pyspark.ml.tests.test_algorithms MultilayerPerceptronClassifierTest.test_raw_and_probability_prediction with python3; see logs.
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org