huaxingao commented on a change in pull request #27330: [MINOR][ML] Deprecate 
numTrees in GBT
URL: https://github.com/apache/spark/pull/27330#discussion_r370482028
 
 

 ##########
 File path: 
mllib/src/main/scala/org/apache/spark/ml/classification/GBTClassifier.scala
 ##########
 @@ -342,7 +342,12 @@ class GBTClassificationModel private[ml](
     }
   }
 
-  /** Number of trees in ensemble */
+  /**
+   * Number of trees in ensemble
+   *
+   * @deprecated  Use [[getNumTrees]] instead.  This method will be removed in 
3.1.0
+   */
+  @deprecated("Use getNumTrees instead. This method will be removed in 
3.1.0.", "3.0.0")
 
 Review comment:
   so deprecate this in v2.4.5-rc1, right? 

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to