GitHub user facaiy opened a pull request: https://github.com/apache/spark/pull/18120
[SPARK-20498][PYSPARK][ML] Expose getMaxDepth for ensemble tree model in PySpark ## What changes were proposed in this pull request? add `getMaxDepth` method for ensemble tree models: + `RandomForestClassifierModel` + `RandomForestRegressionModel` + `GBTClassificationModel` + `GBTRegressionModel` ## How was this patch tested? + [ ] pass all unit tests. + [ ] add new doctest. You can merge this pull request into a Git repository by running: $ git pull https://github.com/facaiy/spark ENH/pyspark_rf_add_get_max_depth Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/18120.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #18120 ---- commit 96e797f79000964ea226efced7318f24a1722535 Author: Yan Facai (é¢åæ) <facai....@gmail.com> Date: 2017-05-26T07:48:02Z ENH: add maxDepth for resemble tree model commit 50815928f070f89ae71e235d51e833cef596a361 Author: Yan Facai (é¢åæ) <facai....@gmail.com> Date: 2017-05-26T08:45:11Z TST: add doctest ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org