Github user yanboliang commented on the pull request:

    https://github.com/apache/spark/pull/11365#issuecomment-208857657
  
    @mengxr I run test on a dataset with a constant nonzero column. 
    * If ```fitIntercept==true```, Spark ```AFTSurvivalRegression``` and R 
```survreg``` output the same result which setting the coefficients to 0.0 for 
the constant feature column.
    * If ```fitIntercept==false```, Spark ```AFTSurvivalRegression``` output 
different solution from R ```survreg```. R output nonzero coefficients for the 
constant feature column.
    
    If there are constant columns and ```fitIntercept``` is false. We should 
output a warning message and clarify in document. I think it should be handle 
with ```LogisticRegression``` together at 
[SPARK-13590](https://issues.apache.org/jira/browse/SPARK-13590). 


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