Github user jkbradley commented on a diff in the pull request:

    https://github.com/apache/spark/pull/10355#discussion_r57245082
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/ml/regression/AFTSurvivalRegression.scala 
---
    @@ -183,12 +183,12 @@ class AFTSurvivalRegression @Since("1.6.0") 
(@Since("1.6.0") override val uid: S
        * Extract [[featuresCol]], [[labelCol]] and [[censorCol]] from input 
dataset,
        * and put it in an RDD with strong types.
        */
    -  protected[ml] def extractAFTPoints(dataset: DataFrame): RDD[AFTPoint] = {
    -    dataset.select($(featuresCol), $(labelCol), $(censorCol)).rdd.map {
    -      case Row(features: Vector, label: Double, censor: Double) =>
    -        AFTPoint(features, label, censor)
    -    }
    -  }
    +  protected[ml] def extractAFTPoints(dataset: DataFrame): RDD[AFTPoint] =
    --- End diff --
    
    I prefer to keep braces around multiline methods like this.


---
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]

Reply via email to