Github user yanboliang commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19020#discussion_r149251168
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/ml/regression/LinearRegression.scala ---
    @@ -480,10 +638,14 @@ object LinearRegression extends 
DefaultParamsReadable[LinearRegression] {
     class LinearRegressionModel private[ml] (
         @Since("1.4.0") override val uid: String,
         @Since("2.0.0") val coefficients: Vector,
    -    @Since("1.3.0") val intercept: Double)
    +    @Since("1.3.0") val intercept: Double,
    +    @Since("2.3.0") val scale: Double)
    --- End diff --
    
    This is suggested by @jkbradley , and I also agree that it should be useful 
for model interpretation and debugging. And I have provided another constructor 
for linear regression model produced by _squared error_.


---

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

Reply via email to