-
- Downloads
[SPARK-15741][PYSPARK][ML] Pyspark cleanup of set default seed to None
## What changes were proposed in this pull request? Several places set the seed Param default value to None which will translate to a zero value on the Scala side. This is unnecessary because a default fixed value already exists and if a test depends on a zero valued seed, then it should explicitly set it to zero instead of relying on this translation. These cases can be safely removed except for the ALS doc test, which has been changed to set the seed value to zero. ## How was this patch tested? Ran PySpark tests locally Author: Bryan Cutler <cutlerb@gmail.com> Closes #13672 from BryanCutler/pyspark-cleanup-setDefault-seed-SPARK-15741.
Showing
- python/pyspark/ml/classification.py 2 additions, 2 deletionspython/pyspark/ml/classification.py
- python/pyspark/ml/feature.py 1 addition, 1 deletionpython/pyspark/ml/feature.py
- python/pyspark/ml/recommendation.py 2 additions, 2 deletionspython/pyspark/ml/recommendation.py
- python/pyspark/ml/regression.py 2 additions, 2 deletionspython/pyspark/ml/regression.py
Loading
Please register or sign in to comment