Github user yinxusen commented on the pull request:
https://github.com/apache/spark/pull/5980#issuecomment-100116796
@mengxr How to represent `-inf` and `inf`? One possible solution is
```scala
val inf = Double.MaxValue
val negInf = Double.MinValue
splits = Array(negInf, 0, 1, 2, 3, inf)
```
Or we can define `inf` and `negInf` as double parameters, without setter.
```scala
val inf = new DoubleParam(this, "inf", "")
setDefault(inf -> Double.MaxValue)
def getInf = $(inf)
val negInf = new DoubleParam(this, "negInf", "")
setDefault(negInf -> Double.MinValue)
def getNegInf = $(negInf)
```
However, it would break the meaning of `splits`, I think.
---
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]