spark-instrumented-optimizer/python/pyspark/ml
Marco Gaido 20fa456932 [SPARK-25090][ML] Enforce implicit type coercion in ParamGridBuilder
## What changes were proposed in this pull request?

When the grid of the parameters is created in `ParamGridBuilder`, the implicit type coercion is not enforced. So using an integer in the list of parameters to set for a parameter accepting a double can cause a class cast exception.

The PR proposes to enforce the type coercion when building the parameters.

## How was this patch tested?

added UT

Closes #22076 from mgaido91/SPARK-25090.

Authored-by: Marco Gaido <marcogaido91@gmail.com>
Signed-off-by: hyukjinkwon <gurwls223@apache.org>
2018-08-13 09:11:37 +08:00
..
linalg [SPARK-24740][PYTHON][ML] Make PySpark's tests compatible with NumPy 1.14+ 2018-07-07 11:39:29 +08:00
param [SPARK-24439][ML][PYTHON] Add distanceMeasure to BisectingKMeans in PySpark 2018-06-28 14:07:28 -07:00
__init__.py [SPARK-24477][SPARK-24454][ML][PYTHON] Imports submodule in ml/__init__.py and add ImageSchema into __all__ 2018-06-08 09:32:11 -07:00
base.py [SPARK-22922][ML][PYSPARK] Pyspark portion of the fit-multiple API 2017-12-29 16:31:25 -08:00
classification.py [SPARK-14712][ML] LogisticRegressionModel.toString should summarize model 2018-06-28 12:40:39 -07:00
clustering.py Fix typos detected by github.com/client9/misspell 2018-08-11 21:23:36 -05:00
common.py [SPARK-17679] [PYSPARK] remove unnecessary Py4J ListConverter patch 2016-10-03 14:12:03 -07:00
evaluation.py [SPARK-23522][PYTHON] always use sys.exit over builtin exit 2018-03-08 20:38:34 +09:00
feature.py [SPARK-24754][ML] Minhash integer overflow 2018-07-14 15:59:17 -05:00
fpm.py [SAPRK-25011][ML] add prefix to __all__ in fpm.py 2018-08-03 15:02:41 +08:00
image.py [SPARK-24477][SPARK-24454][ML][PYTHON] Imports submodule in ml/__init__.py and add ImageSchema into __all__ 2018-06-08 09:32:11 -07:00
pipeline.py [SPARK-17025][ML][PYTHON] Persistence for Pipelines with Python-only Stages 2017-08-11 23:57:08 -07:00
recommendation.py [SPARK-23522][PYTHON] always use sys.exit over builtin exit 2018-03-08 20:38:34 +09:00
regression.py Fix typos detected by github.com/client9/misspell 2018-08-11 21:23:36 -05:00
stat.py [SPARK-24740][PYTHON][ML] Make PySpark's tests compatible with NumPy 1.14+ 2018-07-07 11:39:29 +08:00
tests.py [SPARK-25090][ML] Enforce implicit type coercion in ParamGridBuilder 2018-08-13 09:11:37 +08:00
tuning.py [SPARK-25090][ML] Enforce implicit type coercion in ParamGridBuilder 2018-08-13 09:11:37 +08:00
util.py [SPARK-24698][PYTHON] Fixed typo in pyspark.ml's Identifiable class. 2018-07-05 10:05:41 +08:00
wrapper.py [SPARK-21685][PYTHON][ML] PySpark Params isSet state should not change after transform 2018-03-23 11:42:40 -07:00