GitHub user WeichenXu123 opened a pull request:

    https://github.com/apache/spark/pull/20088

    [SPARK-22905][ML][MLLIB][CORE] Fix ChiSqSelectorModel save implementation

    ## What changes were proposed in this pull request?
    
    Currently, in `ChiSqSelectorModel`, save:
    
    spark.createDataFrame(dataArray).repartition(1).write...
    The default partition number used by createDataFrame is 
"defaultParallelism",
    Current RoundRobinPartitioning won't guarantee the "repartition" generating 
the same order result with local array. We need fix it.
    
    ## How was this patch tested?
    
    N/A


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/WeichenXu123/spark fix_chisq_model_save

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/20088.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #20088
    
----
commit 5fd56c350cb410740209fba32c19489847a1d019
Author: WeichenXu <weichen.xu@...>
Date:   2017-12-27T04:31:25Z

    init pr

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to