Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-14386][ML] Changed spark.ml ensemble trees methods to return concrete types #12158

Closed
wants to merge 1 commit into from

Conversation

jkbradley
Copy link
Member

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

@jkbradley
Copy link
Member Author

@sethah Since you've been working on trees, would you mind taking a look at this? Thanks!

@SparkQA
Copy link

SparkQA commented Apr 4, 2016

Test build #54901 has finished for PR 12158 at commit 461e910.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@sethah
Copy link
Contributor

sethah commented Apr 5, 2016

This LGTM.

@jkbradley
Copy link
Member Author

Thanks! I'll merge with master given your LGTM

@asfgit asfgit closed this in 8f50574 Apr 5, 2016
@jkbradley jkbradley deleted the hide-dtm branch April 5, 2016 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants