[ 
https://issues.apache.org/jira/browse/SPARK-19155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yanbo Liang updated SPARK-19155:
--------------------------------
    Description: 
ML {{GeneralizedLinearRegression}} only support lowercase input for {{family}} 
and {{link}} currently. For example, the following code will throw exception:
{code}
val trainer = new GeneralizedLinearRegression().setFamily("Gamma")
{code}
However, R glm only accepts families: {{gaussian, binomial, poisson, Gamma}}. 
We should make {{family}} and {{link}} case insensitive. 

  was:
ML {{GeneralizedLinearRegression}} should support both uppercase and lowercase. 
For example, the following code will throw exception currently:
{code}
val trainer = new GeneralizedLinearRegression().setFamily("Gamma")
{code}
Actually, R glm only accepts families: {{gaussian, binomial, poisson, Gamma}}. 
We should make {{family}} and {{link}} case insensitive. 


> MLlib GeneralizedLinearRegression family and link should case insensitive 
> --------------------------------------------------------------------------
>
>                 Key: SPARK-19155
>                 URL: https://issues.apache.org/jira/browse/SPARK-19155
>             Project: Spark
>          Issue Type: Improvement
>          Components: ML
>            Reporter: Yanbo Liang
>
> ML {{GeneralizedLinearRegression}} only support lowercase input for 
> {{family}} and {{link}} currently. For example, the following code will throw 
> exception:
> {code}
> val trainer = new GeneralizedLinearRegression().setFamily("Gamma")
> {code}
> However, R glm only accepts families: {{gaussian, binomial, poisson, Gamma}}. 
> We should make {{family}} and {{link}} case insensitive. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to