Closed danr closed 4 years ago
Ok thinking about it just a few seconds more, it's a bit silly to set a probability to max double :P Perhaps better to set it to 1.0.
Yes, I think that makes more sense to use 1.0 and 0 for Infinity and -Infinity respectively. I am thinking of implementing it only for the cox regression for now. Sounds good?
Sounds good!
Fun quirk of JSON: the Javascript-valid double values Infinity and NaN are not expressible as JSON... And here's an invocation that returns Infinity:
returns
Possible fix: replace Infinity with max double 1.7976931348623157e+308