diff options
author | Joseph K. Bradley <joseph@databricks.com> | 2017-02-25 22:24:08 -0800 |
---|---|---|
committer | Yanbo Liang <ybliang8@gmail.com> | 2017-02-25 22:24:08 -0800 |
commit | 6ab60542e8e803b1d91371a92f4aaef6a64106f6 (patch) | |
tree | 7ff9fb813344409b7b57b66d8f9553cce6bee43e /mllib/src | |
parent | 410392ed75da64c6980fad5b450b352ee8377cb8 (diff) | |
download | spark-6ab60542e8e803b1d91371a92f4aaef6a64106f6.tar.gz spark-6ab60542e8e803b1d91371a92f4aaef6a64106f6.tar.bz2 spark-6ab60542e8e803b1d91371a92f4aaef6a64106f6.zip |
[MINOR][ML][DOC] Document default value for GeneralizedLinearRegression.linkPower
Add Scaladoc for GeneralizedLinearRegression.linkPower default value
Follow-up to https://github.com/apache/spark/pull/16344
Author: Joseph K. Bradley <joseph@databricks.com>
Closes #17069 from jkbradley/tweedie-comment.
Diffstat (limited to 'mllib/src')
-rw-r--r-- | mllib/src/main/scala/org/apache/spark/ml/regression/GeneralizedLinearRegression.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mllib/src/main/scala/org/apache/spark/ml/regression/GeneralizedLinearRegression.scala b/mllib/src/main/scala/org/apache/spark/ml/regression/GeneralizedLinearRegression.scala index fdeadaf274..110764dc07 100644 --- a/mllib/src/main/scala/org/apache/spark/ml/regression/GeneralizedLinearRegression.scala +++ b/mllib/src/main/scala/org/apache/spark/ml/regression/GeneralizedLinearRegression.scala @@ -109,6 +109,8 @@ private[regression] trait GeneralizedLinearRegressionBase extends PredictorParam * Param for the index in the power link function. Only applicable for the Tweedie family. * Note that link power 0, 1, -1 or 0.5 corresponds to the Log, Identity, Inverse or Sqrt * link, respectively. + * When not set, this value defaults to 1 - [[variancePower]], which matches the R "statmod" + * package. * * @group param */ |