diff options
author | Joseph K. Bradley <joseph@databricks.com> | 2016-04-04 20:12:09 -0700 |
---|---|---|
committer | Joseph K. Bradley <joseph@databricks.com> | 2016-04-04 20:12:09 -0700 |
commit | 8f50574ab4021b9984b0017cd47ba012a894c19a (patch) | |
tree | f049ce43aa3852637f782d610ebb7762df983d60 /python | |
parent | ba24d1ee9a1d97ca82282f3b811ec011c4285b99 (diff) | |
download | spark-8f50574ab4021b9984b0017cd47ba012a894c19a.tar.gz spark-8f50574ab4021b9984b0017cd47ba012a894c19a.tar.bz2 spark-8f50574ab4021b9984b0017cd47ba012a894c19a.zip |
[SPARK-14386][ML] Changed spark.ml ensemble trees methods to return concrete types
## What changes were proposed in this pull request?
In spark.ml, GBT and RandomForest expose the trait DecisionTreeModel in the trees method, but they should not since it is a private trait (and not ready to be made public). It will also be more useful to users if we return the concrete types.
This PR: return concrete types
The MIMA checks appear to be OK with this change.
## How was this patch tested?
Existing unit tests
Author: Joseph K. Bradley <joseph@databricks.com>
Closes #12158 from jkbradley/hide-dtm.
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions