Uh oh!
There was an error while loading. Please reload this page.
[MINOR][ML] Remove BisectingKMeansModel.setDistanceMeasure method - #22360
[MINOR][ML] Remove BisectingKMeansModel.setDistanceMeasure method#22360WeichenXu123 wants to merge 1 commit into
BisectingKMeansModel.setDistanceMeasure method#22360Conversation
SparkQA
commented
Sep 7, 2018
Test build #95797 has finished for PR 22360 at commit
|
srowen
commented
Sep 7, 2018
Pardon, why is it meaningless? It's used in the implementation it delegates to. |
WeichenXu123
commented
Sep 8, 2018
@srowen The delegated its constructor argument |
srowen
commented
Sep 8, 2018
Oh right, the model, not the implementation. CC @mgaido91 too. OK we can take it out because it was only introduced for 2.4.0. Hm, so the model still has a distanceMeasure, but it's just not something that should be settable. The bisecting k-means model just wraps the older .mllib model. But I don't see that its getDistanceMeasure would actually return the value inside that wrapped model? I am missing where the wrapper gets updated to return the actual distance measure used. Is that also an issue or did I miss something? |
mgaido91
commented
Sep 8, 2018
Thanks for pinging me @srowen.
Yes, that is the reason that |
srowen
commented
Sep 8, 2018
OK so the wrapper model's constructor needs to set this value once from the wrapped model? It does seem like it should be immutable and seems to not be exposed to set in k means for example. |
mgaido91
commented
Sep 8, 2018
Yes, I think the point here is that the parameter is part of |
WeichenXu123
commented
Sep 9, 2018
Do we need to set |
mgaido91
commented
Sep 9, 2018
Oh, right, it is already set in |
srowen
commented
Sep 9, 2018
Merged to master/2.4 |
## What changes were proposed in this pull request? Remove `BisectingKMeansModel.setDistanceMeasure` method. In `BisectingKMeansModel` set this param is meaningless. ## How was this patch tested? N/A Closes#22360 from WeichenXu123/bkmeans_update. Authored-by: WeichenXu <weichen.xu@databricks.com> Signed-off-by: Sean Owen <sean.owen@databricks.com> (cherry picked from commit 88a930d) Signed-off-by: Sean Owen <sean.owen@databricks.com>
What changes were proposed in this pull request?
Remove
BisectingKMeansModel.setDistanceMeasuremethod.In
BisectingKMeansModelset this param is meaningless.How was this patch tested?
N/A