-
- Downloads
[SPARK-14971][ML][PYSPARK] PySpark ML Params setter code clean up
## What changes were proposed in this pull request? PySpark ML Params setter code clean up. For examples, ```setInputCol``` can be simplified from ``` self._set(inputCol=value) return self ``` to: ``` return self._set(inputCol=value) ``` This is a pretty big sweeps, and we cleaned wherever possible. ## How was this patch tested? Exist unit tests. Author: Yanbo Liang <ybliang8@gmail.com> Closes #12749 from yanboliang/spark-14971.
Showing
- python/pyspark/ml/classification.py 7 additions, 14 deletionspython/pyspark/ml/classification.py
- python/pyspark/ml/clustering.py 6 additions, 12 deletionspython/pyspark/ml/clustering.py
- python/pyspark/ml/evaluation.py 3 additions, 6 deletionspython/pyspark/ml/evaluation.py
- python/pyspark/ml/feature.py 37 additions, 74 deletionspython/pyspark/ml/feature.py
- python/pyspark/ml/param/_shared_params_code_gen.py 1 addition, 2 deletionspython/pyspark/ml/param/_shared_params_code_gen.py
- python/pyspark/ml/param/shared.py 29 additions, 58 deletionspython/pyspark/ml/param/shared.py
- python/pyspark/ml/pipeline.py 1 addition, 2 deletionspython/pyspark/ml/pipeline.py
- python/pyspark/ml/recommendation.py 12 additions, 23 deletionspython/pyspark/ml/recommendation.py
- python/pyspark/ml/regression.py 12 additions, 24 deletionspython/pyspark/ml/regression.py
- python/pyspark/ml/tuning.py 2 additions, 4 deletionspython/pyspark/ml/tuning.py
Loading
Please register or sign in to comment