GitHub user yanboliang opened a pull request:

    [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 import GeneralizedLinearRegression
    dataset ="libsvm").load("data/mllib/sample_linear_regression_data.txt")
    glr = GeneralizedLinearRegression(family="gaussian", link="identity", 
maxIter=10, regParam=0.3)
    model =
    Before this PR:
    After this PR:

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

    $ git pull spark-19270

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

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 <>
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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to