GitHub user yanboliang opened a pull request:

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

    [SPARK-19270][FOLLOW-UP][ML] PySpark GLR model.summary should return a 
printable representation.

    ## What changes were proposed in this pull request?
    PySpark GLR ```model.summary``` should return a printable representation by 
calling Scala ```toString```.
    
    ## How was this patch tested?
    ```
    from pyspark.ml.regression import GeneralizedLinearRegression
    dataset = 
spark.read.format("libsvm").load("data/mllib/sample_linear_regression_data.txt")
    glr = GeneralizedLinearRegression(family="gaussian", link="identity", 
maxIter=10, regParam=0.3)
    model = glr.fit(dataset)
    model.summary
    ```
    Before this PR:
    After this PR:


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

    $ git pull https://github.com/yanboliang/spark spark-19270

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

    https://github.com/apache/spark/pull/18870.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 #18870
    
----
commit e33635c6777b7a96f2e06dad6868b75ab0735fe6
Author: Yanbo Liang <yblia...@gmail.com>
Date:   2017-08-07T09:30:07Z

    PySpark GLR model.summary should return a printable representation.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to