-
- Downloads
[SPARK-5769] Set params in constructors and in setParams in Python ML pipelines
This PR allow Python users to set params in constructors and in setParams, where we use decorator `keyword_only` to force keyword arguments. The trade-off is discussed in the design doc of SPARK-4586. Generated doc:  CC: davies rxin Author: Xiangrui Meng <meng@databricks.com> Closes #4564 from mengxr/py-pipeline-kw and squashes the following commits: fedf720 [Xiangrui Meng] use toDF d565f2c [Xiangrui Meng] Merge remote-tracking branch 'apache/master' into py-pipeline-kw cbc15d3 [Xiangrui Meng] fix style 5032097 [Xiangrui Meng] update pipeline signature 950774e [Xiangrui Meng] simplify keyword_only and update constructor/setParams signatures fdde5fc [Xiangrui Meng] fix style c9384b8 [Xiangrui Meng] fix sphinx doc 8e59180 [Xiangrui Meng] add setParams and make constructors take params, where we force keyword args
Showing
- examples/src/main/python/ml/simple_text_classification_pipeline.py 17 additions, 27 deletions...src/main/python/ml/simple_text_classification_pipeline.py
- python/docs/conf.py 4 additions, 0 deletionspython/docs/conf.py
- python/pyspark/ml/classification.py 34 additions, 10 deletionspython/pyspark/ml/classification.py
- python/pyspark/ml/feature.py 58 additions, 14 deletionspython/pyspark/ml/feature.py
- python/pyspark/ml/param/__init__.py 8 additions, 0 deletionspython/pyspark/ml/param/__init__.py
- python/pyspark/ml/pipeline.py 17 additions, 2 deletionspython/pyspark/ml/pipeline.py
- python/pyspark/ml/util.py 15 additions, 0 deletionspython/pyspark/ml/util.py
Loading
Please register or sign in to comment