Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-33203

Pyspark ml tests failing with rounding errors

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.1
    • 3.1.0
    • ML, PySpark
    • None

    Description

      The tests pyspark.ml.recommendation and pyspark.ml.tests.test_algorithms occasionally fail (depends on environment) with

      File "/home/jenkins/python/pyspark/ml/tests/test_algorithms.py", line 96, in test_raw_and_probability_prediction
       self.assertTrue(np.allclose(result.rawPrediction, expected_rawPrediction, atol=1))
      AssertionError: False is not true
      File "/home/jenkins/python/pyspark/ml/recommendation.py", line 256, in _main_.ALS
      Failed example:
       predictions[0]
      Expected:
       Row(user=0, item=2, newPrediction=0.6929101347923279)
      Got:
       Row(user=0, item=2, newPrediction=0.6929104924201965)
      ...

      Attachments

        Activity

          People

            apatti Alessandro Patti
            apatti Alessandro Patti
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: