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

    https://github.com/apache/spark/pull/17146#discussion_r104322692
  
    --- Diff: python/pyspark/ml/regression.py ---
    @@ -1344,40 +1347,53 @@ class GeneralizedLinearRegression(JavaEstimator, 
HasLabelCol, HasFeaturesCol, Ha
     
         family = Param(Params._dummy(), "family", "The name of family which is 
a description of " +
                        "the error distribution to be used in the model. 
Supported options: " +
    -                   "gaussian (default), binomial, poisson and gamma.",
    +                   "gaussian (default), binomial, poisson, gamma and 
tweedie.",
                        typeConverter=TypeConverters.toString)
         link = Param(Params._dummy(), "link", "The name of link function which 
provides the " +
                      "relationship between the linear predictor and the mean 
of the distribution " +
                      "function. Supported options: identity, log, inverse, 
logit, probit, cloglog " +
                      "and sqrt.", typeConverter=TypeConverters.toString)
         linkPredictionCol = Param(Params._dummy(), "linkPredictionCol", "link 
prediction (linear " +
                                   "predictor) column name", 
typeConverter=TypeConverters.toString)
    +    variancePower = Param(Params._dummy(), "variancePower", "The power in 
the variance function " +
    +                          "of the Tweedie distribution which characterizes 
the relationship " +
    +                          "between the variance and mean of the 
distribution. Only applicable " +
    +                          "for the Tweedie family. Supported values: 0 and 
[1, Inf).",
    +                          typeConverter=TypeConverters.toFloat)
    +    linkPower = Param(Params._dummy(), "linkPower", "The index in the 
power link function. " +
    +                      "Only applicable for the Tweedie family.",
    +                      typeConverter=TypeConverters.toFloat)
     
         @keyword_only
         def __init__(self, labelCol="label", featuresCol="features", 
predictionCol="prediction",
                      family="gaussian", link=None, fitIntercept=True, 
maxIter=25, tol=1e-6,
    --- End diff --
    
    is there check to make sure link=None when family="Tweedie"?


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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to