Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-35781 Support Spark on Apple Silicon on macOS natively on Java 17
  3. SPARK-37522

Fix MultilayerPerceptronClassifierTest.test_raw_and_probability_prediction

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 3.2.1, 3.3.0
    • PySpark, Tests
    • None

    Description

      The failure happens on Java 17 native Apple Silicon version on Python 3.9/3.10.

      $ 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)
      
      ======================================================================
      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.
      

      Attachments

        Activity

          People

            dongjoon Dongjoon Hyun
            dongjoon Dongjoon Hyun
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: