GitHub user WeichenXu123 opened a pull request: https://github.com/apache/spark/pull/14121
[MINOR][ML] update comment where is inconsistent with code in ml.regression.LinearRegression ## What changes were proposed in this pull request? In `train` method of `ml.regression.LinearRegression` when handling situation `std(label) == 0` the code replace `std(label)` with `mean(label)` but the relative comment is inconsistent, I update 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 update_lr_comment Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/14121.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 #14121 ---- commit ab7452c2a48884571c9db6444c739b8cb0c7c603 Author: WeichenXu <weichenxu...@outlook.com> Date: 2016-07-10T04:12:42Z update_lr_comment ---- --- 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