You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Alessandro Patti (Jira)" <ji...@apache.org> on 2020/10/21 07:48:00 UTC

[jira] [Updated] (SPARK-33203) Pyspark ml tests failing with rounding errors

     [ https://issues.apache.org/jira/browse/SPARK-33203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alessandro Patti updated SPARK-33203:
-------------------------------------
    Description: 
The tests _{{pyspark.ml.recommendation}}_ and _{{pyspark.ml.tests.test_algorithms}}_ occasionally fail (depends on environment) with
{code:java}
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{code}
{code:java}
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)
...{code}

  was:
The tests `pyspark.ml.recommendation` and `pyspark.ml.tests.test_algorithms` occasionally fail (depends on environment) with 
{code:java}
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{code}
{code:java}
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)
...{code}


> Pyspark ml tests failing with rounding errors
> ---------------------------------------------
>
>                 Key: SPARK-33203
>                 URL: https://issues.apache.org/jira/browse/SPARK-33203
>             Project: Spark
>          Issue Type: Test
>          Components: ML, PySpark
>    Affects Versions: 3.0.1
>            Reporter: Alessandro Patti
>            Priority: Minor
>
> The tests _{{pyspark.ml.recommendation}}_ and _{{pyspark.ml.tests.test_algorithms}}_ occasionally fail (depends on environment) with
> {code:java}
> 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{code}
> {code:java}
> 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)
> ...{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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