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

    https://github.com/apache/spark/pull/16511#discussion_r95159148
  
    --- Diff: R/pkg/R/mllib_regression.R ---
    @@ -104,8 +106,9 @@ setMethod("spark.glm", signature(data = 
"SparkDataFrame", formula = "formula"),
                   weightCol <- ""
                 }
     
    +            # For known families, Gamma is upper-cased
                 jobj <- 
callJStatic("org.apache.spark.ml.r.GeneralizedLinearRegressionWrapper",
    -                                "fit", formula, data@sdf, family$family, 
family$link,
    +                                "fit", formula, data@sdf, 
tolower(family$family), family$link,
    --- End diff --
    
    I think we should put case conversion into MLlib side, then we can get 
consistent behavior from APIs in different languages (Scala/Python/R). I sent 
#16516 to fix it in MLlib. If it's reasonable, we can revert the change of this 
line.


---
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