Uh oh!
There was an error while loading. Please reload this page.
[SPARK-26127][ML] Remove deprecated setters from tree regression and classification models - #23093
[SPARK-26127][ML] Remove deprecated setters from tree regression and classification models#23093mgaido91 wants to merge 4 commits into
Conversation
…and classification models
mgaido91
commented
Nov 20, 2018
cc @srowen |
SparkQA
commented
Nov 20, 2018
Test build #99047 has finished for PR 23093 at commit
|
| /** @group setParam */ | ||
| @Since("1.4.0") | ||
| override def setImpurity(value: String): this.type = set(impurity, value) | ||
| def setImpurity(value: String): this.type = set(impurity, value) |
There was a problem hiding this comment.
I think we can remove these too. I assumed they were meant to be deprecated because the trait's implementation was deprecated, and there's no compelling reason to only remove it from the trait. The point was to use set().
There was a problem hiding this comment.
I don't think those can be removed. The ones which were deprecated are the setImpurity on the Models, not on the Classifiers/Regressors which build the models.
There was a problem hiding this comment.
OK I think I'm wrong about the logic, given the first attempt to do this in #17867 Yes this is fine. In fact I think you're welcome to just revive that PR and remove a lot of similar deprecated methods again.
There was a problem hiding this comment.
I see, thanks. I'll update this PR removing all the other deprecated items for these models then. Thanks.
SparkQA
commented
Nov 20, 2018
Test build #99059 has finished for PR 23093 at commit
|
SparkQA
commented
Nov 20, 2018
Test build #99060 has finished for PR 23093 at commit
|
SparkQA
commented
Nov 21, 2018
Test build #99108 has finished for PR 23093 at commit
|
srowen
commented
Nov 21, 2018
Merged to master |
…classification models ## What changes were proposed in this pull request? The setter methods are deprecated since 2.1 for the models of regression and classification using trees. The deprecation was stating that the method would have been removed in 3.0. Hence the PR removes the deprecated method. ## How was this patch tested? NA Closesapache#23093 from mgaido91/SPARK-26127. Authored-by: Marco Gaido <marcogaido91@gmail.com> Signed-off-by: Sean Owen <sean.owen@databricks.com>
What changes were proposed in this pull request?
The setter methods are deprecated since 2.1 for the models of regression and classification using trees. The deprecation was stating that the method would have been removed in 3.0. Hence the PR removes the deprecated method.
How was this patch tested?
NA