zhengruifeng commented on a change in pull request #21632: 
[SPARK-19591][ML][MLlib] Add sample weights to decision trees
URL: https://github.com/apache/spark/pull/21632#discussion_r321156681
 
 

 ##########
 File path: mllib/src/main/scala/org/apache/spark/ml/tree/treeParams.scala
 ##########
 @@ -37,7 +37,7 @@ import org.apache.spark.sql.types.{DataType, DoubleType, 
StructType}
  * Note: Marked as private and DeveloperApi since this may be made public in 
the future.
  */
 private[ml] trait DecisionTreeParams extends PredictorParams
-  with HasCheckpointInterval with HasSeed {
+  with HasCheckpointInterval with HasSeed with HasWeightCol {
 
 
 Review comment:
   Thanks @imatiach-msft ! I just read corresponding tickets. 
   My concern is that we need to support weighting in RF & GBT in 3.0.0, 
otherwise two unused params will be added.

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to