spark-instrumented-optimizer/python/pyspark/ml
Joseph K. Bradley d29e429eeb [SPARK-14714][ML][PYTHON] Fixed issues with non-kwarg typeConverter arg for Param constructor
## What changes were proposed in this pull request?

PySpark Param constructors need to pass the TypeConverter argument by name, partly to make sure it is not mistaken for the expectedType arg and partly because we will remove the expectedType arg in 2.1. In several places, this is not being done correctly.

This PR changes all usages in pyspark/ml/ to keyword args.

## How was this patch tested?

Existing unit tests.  I will not test type conversion for every Param unless we really think it necessary.

Also, if you start the PySpark shell and import classes (e.g., pyspark.ml.feature.StandardScaler), then you no longer get this warning:
```
/Users/josephkb/spark/python/pyspark/ml/param/__init__.py:58: UserWarning: expectedType is deprecated and will be removed in 2.1. Use typeConverter instead, as a keyword argument.
  "Use typeConverter instead, as a keyword argument.")
```
That warning came from the typeConverter argument being passes as the expectedType arg by mistake.

Author: Joseph K. Bradley <joseph@databricks.com>

Closes #12480 from jkbradley/typeconverter-fix.
2016-04-18 17:15:12 -07:00
..
param [SPARK-14605][ML][PYTHON] Changed Python to use unicode UIDs for spark.ml Identifiable 2016-04-16 11:23:28 -07:00
__init__.py [SPARK-13038][PYSPARK] Add load/save to pipeline 2016-03-16 13:49:40 -07:00
base.py [SPARK-13038][PYSPARK] Add load/save to pipeline 2016-03-16 13:49:40 -07:00
classification.py [SPARK-14306][ML][PYSPARK] PySpark ml.classification OneVsRest support export/import 2016-04-18 11:52:29 -07:00
clustering.py [SPARK-14714][ML][PYTHON] Fixed issues with non-kwarg typeConverter arg for Param constructor 2016-04-18 17:15:12 -07:00
evaluation.py [SPARK-14104][PYSPARK][ML] All Python param setters should use the _set method 2016-04-15 12:14:41 -07:00
feature.py [SPARK-14714][ML][PYTHON] Fixed issues with non-kwarg typeConverter arg for Param constructor 2016-04-18 17:15:12 -07:00
pipeline.py [SPARK-14440][PYSPARK] Remove pipeline specific reader and writer 2016-04-18 13:31:48 -07:00
recommendation.py [SPARK-14714][ML][PYTHON] Fixed issues with non-kwarg typeConverter arg for Param constructor 2016-04-18 17:15:12 -07:00
regression.py [SPARK-14104][PYSPARK][ML] All Python param setters should use the _set method 2016-04-15 12:14:41 -07:00
tests.py [SPARK-14564][ML][MLLIB][PYSPARK] Python Word2Vec missing setWindowSize method 2016-04-18 12:47:14 -07:00
tuning.py [SPARK-14104][PYSPARK][ML] All Python param setters should use the _set method 2016-04-15 12:14:41 -07:00
util.py [SPARK-14605][ML][PYTHON] Changed Python to use unicode UIDs for spark.ml Identifiable 2016-04-16 11:23:28 -07:00
wrapper.py [SPARK-14605][ML][PYTHON] Changed Python to use unicode UIDs for spark.ml Identifiable 2016-04-16 11:23:28 -07:00