GitHub user viirya opened a pull request:

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

    [SPARK-23042][ML] Use OneHotEncoderModel to encode labels in 
MultilayerPerceptronClassifier

    ## What changes were proposed in this pull request?
    
    In MultilayerPerceptronClassifier, we use RDD operation to encode labels 
for now. I think we should use ML's OneHotEncoderEstimator/Model to do the 
encoding.
    
    ## How was this patch tested?
    
    Existing tests.

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

    $ git pull https://github.com/viirya/spark-1 SPARK-23042

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

    https://github.com/apache/spark/pull/20232.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 #20232
    
----
commit de4fec91c04ae904ac1bc41e644b7687a6ca69fd
Author: Liang-Chi Hsieh <viirya@...>
Date:   2018-01-11T10:45:17Z

    Use OneHotEncoderModel to encode labels.

----


---

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

Reply via email to