-
Notifications
You must be signed in to change notification settings - Fork 28.4k
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-4998][MLlib]delete the "train" function #3836
Conversation
To make the functions with the same in "object" effective, specially when using java reflection. As the "train" function defined in "class DecisionTree" will hide the functions with the same name in "object DecisionTree". JIRA[SPARK-4998]
Can one of the admins verify this patch? |
Although this is an experimental class, and so API methods could be removed, I think you'd still want a decent reason to remove this method at this point, even if it's deprecated. Here, there is no method with the same signature in the object though, so I'm not sure what the problem is. It's common to have many methods with the same name in a class anyway. With reflection you differentiate them by their method signature, so this shouldn't be an obstacle. (I think the object even appears as a separate class Last you should connect your existing JIRA to this PR by putting SPARK-4998 in the title. https://issues.apache.org/jira/browse/SPARK-4998 |
@srowen The Scala compiler doesn't generate the static
One way to call this static
|
Ah, I see the problem now. That's surprising. Yes I'm used to using |
ok to test |
add to whitelist |
Test build #24909 has started for PR 3836 at commit
|
Test build #24910 has started for PR 3836 at commit
|
Test build #24909 has finished for PR 3836 at commit
|
Test FAILed. |
Test build #24910 has finished for PR 3836 at commit
|
Test PASSed. |
LGTM. Merged into master. Thanks! |
To make the functions with the same in "object" effective, specially when using java reflection.
As the "train" function defined in "class DecisionTree" will hide the functions with the same name in "object DecisionTree".
JIRA[SPARK-4998]