Skip to content

Commit 80981fd

Browse files
committed
added scaladoc about default value for GeneralizedLinearRegression.linkPower
1 parent fa7c582 commit 80981fd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mllib/src/main/scala/org/apache/spark/ml/regression/GeneralizedLinearRegression.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ private[regression] trait GeneralizedLinearRegressionBase extends PredictorParam
109109
* Param for the index in the power link function. Only applicable for the Tweedie family.
110110
* Note that link power 0, 1, -1 or 0.5 corresponds to the Log, Identity, Inverse or Sqrt
111111
* link, respectively.
112+
* When not set, this value defaults to 1 - [[variancePower]], which matches the R "statmod"
113+
* package.
112114
*
113115
* @group param
114116
*/

0 commit comments

Comments
 (0)