spark-instrumented-optimizer/python/pyspark/ml
Bryan Cutler 57d70d26c8 [SPARK-17161][PYSPARK][ML] Add PySpark-ML JavaWrapper convenience function to create Py4J JavaArrays
## What changes were proposed in this pull request?

Adding convenience function to Python `JavaWrapper` so that it is easy to create a Py4J JavaArray that is compatible with current class constructors that have a Scala `Array` as input so that it is not necessary to have a Java/Python friendly constructor.  The function takes a Java class as input that is used by Py4J to create the Java array of the given class.  As an example, `OneVsRest` has been updated to use this and the alternate constructor is removed.

## How was this patch tested?

Added unit tests for the new convenience function and updated `OneVsRest` doctests which use this to persist the model.

Author: Bryan Cutler <cutlerb@gmail.com>

Closes #14725 from BryanCutler/pyspark-new_java_array-CountVectorizer-SPARK-17161.
2017-01-31 15:42:36 -08:00
..
linalg [MINOR][DOCS] Remove consecutive duplicated words/typo in Spark Repo 2017-01-04 15:07:29 +00:00
param [SPARK-19336][ML][PYSPARK] LinearSVC Python API 2017-01-27 16:03:53 -08:00
__init__.py [SPARK-14817][ML][MLLIB][DOC] Made DataFrame-based API primary in MLlib guide 2016-07-15 13:38:23 -07:00
base.py [SPARK-15364][ML][PYSPARK] Implement PySpark picklers for ml.Vector and ml.Matrix under spark.ml.python 2016-06-13 19:59:53 -07:00
classification.py [SPARK-17161][PYSPARK][ML] Add PySpark-ML JavaWrapper convenience function to create Py4J JavaArrays 2017-01-31 15:42:36 -08:00
clustering.py [SPARK-14272][ML] Add Loglikelihood in GaussianMixtureSummary 2017-01-19 03:46:37 -08:00
common.py [SPARK-17679] [PYSPARK] remove unnecessary Py4J ListConverter patch 2016-10-03 14:12:03 -07:00
evaluation.py [SPARK-15402][ML][PYSPARK] PySpark ml.evaluation should support save/load 2016-10-14 04:17:03 -07:00
feature.py [SPARK-17645][MLLIB][ML][FOLLOW-UP] document minor change 2017-01-10 13:09:58 +00:00
pipeline.py [SPARK-15018][PYSPARK][ML] Improve handling of PySpark Pipeline when used without stages 2016-08-19 23:46:36 -07:00
recommendation.py [SPARK-15741][PYSPARK][ML] Pyspark cleanup of set default seed to None 2016-06-21 11:43:25 -07:00
regression.py [SPARK-18447][DOCS] Fix the markdown for Note:/NOTE:/Note that across Python API documentation 2016-11-22 11:40:18 +00:00
tests.py [SPARK-17161][PYSPARK][ML] Add PySpark-ML JavaWrapper convenience function to create Py4J JavaArrays 2017-01-31 15:42:36 -08:00
tuning.py [SPARK-16831][PYTHON] Fixed bug in CrossValidator.avgMetrics 2016-08-03 04:18:28 -07:00
util.py [SPARK-18319][ML][QA2.1] 2.1 QA: API: Experimental, DeveloperApi, final, sealed audit 2016-11-29 18:46:59 -08:00
wrapper.py [SPARK-17161][PYSPARK][ML] Add PySpark-ML JavaWrapper convenience function to create Py4J JavaArrays 2017-01-31 15:42:36 -08:00