Github user yanboliang commented on the issue:
https://github.com/apache/spark/pull/18797
@srowen @WeichenXu123
It make sense to remove the datum with label 0, as we compute
```log(label)``` which may lead to ```-Infinity``` and eventually causes the
error. Thanks for catching this.
BTW, what do you think add check when fitting the AFT survival regression
model?
```
def add(data: AFTPoint): this.type = {
val xi = data.features
val ti = data.label
val delta = data.censor
require(ti > 0.0, "The lifetime or label should be greater than 0.")
......
}
```
---
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]