huaxingao opened a new pull request #27330: [MINOR][ML] Deprecate numTrees in 
GBT
URL: https://github.com/apache/spark/pull/27330
 
 
   
   ### What changes were proposed in this pull request?
   Deprecate ```numTrees``` in GBT
   
   
   ### Why are the changes needed?
   Currently, GBT has 
   ```
     /**
      * Number of trees in ensemble
      */
     @Since("2.0.0")
     val getNumTrees: Int = trees.length
   ```
   and 
   ```
     /** Number of trees in ensemble */
     val numTrees: Int = trees.length
   ```
   I think we should remove one of them. 
   
   
   ### Does this PR introduce any user-facing change?
   Yes, deprecate ```numTrees``` in GBT
   
   
   ### How was this patch tested?
   existing tests
   

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