Github user mengxr commented on a diff in the pull request:
https://github.com/apache/spark/pull/8836#discussion_r40125943
--- Diff:
mllib/src/test/scala/org/apache/spark/ml/regression/AFTSurvivalRegressionSuite.scala
---
@@ -302,7 +320,44 @@ class AFTSurvivalRegressionSuite extends SparkFunSuite
with MLlibTestSparkContex
model.setQuantileProbabilities(quantileProbabilities)
assert(model.predictQuantiles(features) ~== quantilePredictR relTol
1E-3)
- model.transform(datasetMultivariate).select("features",
"prediction").collect().foreach {
+ model.setQuantilesCol("quantiles")
+ model.transform(datasetMultivariate).select("features", "prediction",
"quantiles")
+ .collect().foreach {
+ case Row(features: DenseVector, prediction1: Double,
predictionQuantiles1: Vector) =>
+ val lambda = math.exp(BLAS.dot(model.coefficients, features) +
model.intercept)
--- End diff --
Ditto.
---
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]