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

    https://github.com/apache/spark/pull/10607#discussion_r48907182
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/ml/regression/DecisionTreeRegressor.scala 
---
    @@ -87,6 +87,14 @@ final class DecisionTreeRegressor @Since("1.4.0") 
(@Since("1.4.0") override val
         trees.head.asInstanceOf[DecisionTreeRegressionModel]
       }
     
    +  /** (private[ml]) Train a decision tree on an RDD */
    +  private[ml] def train(data: RDD[LabeledPoint],
    --- End diff --
    
    GBTs in spark.ml are handled by converting a dataframe to an RDD of 
`LabeledPoint` and then working with that during training. I added a new 
`train` method to accept an RDD that can be used to train the trees in the GBT 
ensemble. I appreciate feedback on this approach or alternative approaches.


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