srowen commented on a change in pull request #30000:
URL: https://github.com/apache/spark/pull/30000#discussion_r502815872
##########
File path:
mllib/src/main/scala/org/apache/spark/ml/regression/AFTSurvivalRegression.scala
##########
@@ -421,9 +421,17 @@ class AFTSurvivalRegressionModel private[ml] (
}
if (hasQuantilesCol) {
- val predictQuantilesUDF = udf { features: Vector =>
predictQuantiles(features)}
+ val baseQuantiles = $(quantileProbabilities)
+ .map(q => math.exp(math.log(-math.log1p(-q)) * scale))
+ val lambdaCol = if ($(predictionCol).nonEmpty) {
Review comment:
I think you're probably right here but why is lambdaCol the first
predictionCol here?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]