spark-instrumented-optimizer/python/pyspark/ml
Bryan Cutler d8813fa043 [SPARK-13625][PYSPARK][ML] Added a check to see if an attribute is a property when getting param list
## What changes were proposed in this pull request?

Added a check in pyspark.ml.param.Param.params() to see if an attribute is a property (decorated with `property`) before checking if it is a `Param` instance.  This prevents the property from being invoked to 'get' this attribute, which could possibly cause an error.

## How was this patch tested?

Added a test case with a class has a property that will raise an error when invoked and then call`Param.params` to verify that the property is not invoked, but still able to find another property in the class.  Also ran pyspark-ml test before fix that will trigger an error, and again after the fix to verify that the error was resolved and the method was working properly.

Author: Bryan Cutler <cutlerb@gmail.com>

Closes #11476 from BryanCutler/pyspark-ml-property-attr-SPARK-13625.
2016-03-08 17:34:25 -08:00
..
param [SPARK-13625][PYSPARK][ML] Added a check to see if an attribute is a property when getting param list 2016-03-08 17:34:25 -08:00
__init__.py [SPARK-7535] [.0] [MLLIB] Audit the pipeline APIs for 1.4 2015-05-21 22:57:33 -07:00
classification.py [SPARK-13676] Fix mismatched default values for regParam in LogisticRegression 2016-03-04 08:25:41 -08:00
clustering.py [SPARK-13008][ML][PYTHON] Put one alg per line in pyspark.ml all lists 2016-03-01 21:26:47 -08:00
evaluation.py [SPARK-10509][PYSPARK] Reduce excessive param boiler plate code 2016-01-26 15:53:48 -08:00
feature.py [SPARK-13036][SPARK-13318][SPARK-13319] Add save/load for feature.py 2016-03-04 08:32:24 -08:00
pipeline.py [SPARK-10509][PYSPARK] Reduce excessive param boiler plate code 2016-01-26 15:53:48 -08:00
recommendation.py [SPARK-13302][PYSPARK][TESTS] Move the temp file creation and cleanup outside of the doctests 2016-02-20 09:07:19 +00:00
regression.py [SPARK-13033] [ML] [PYSPARK] Add import/export for ml.regression 2016-02-25 21:09:02 -08:00
tests.py [SPARK-13625][PYSPARK][ML] Added a check to see if an attribute is a property when getting param list 2016-03-08 17:34:25 -08:00
tuning.py [SPARK-12877][ML] Add train-validation-split to pyspark 2016-03-03 09:50:05 -08:00
util.py [SPARK-13032][ML][PYSPARK] PySpark support model export/import and take LinearRegression as example 2016-01-29 09:22:24 -08:00
wrapper.py [SPARK-13153][PYSPARK] ML persistence failed when handle no default value parameter 2016-02-11 18:38:49 -08:00