-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[MINOR][ML] Remove BisectingKMeansModel.setDistanceMeasure method
#22360
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
Conversation
|
Test build #95797 has finished for PR 22360 at commit
|
|
Pardon, why is it meaningless? It's used in the implementation it delegates to. |
|
@srowen The delegated its constructor argument |
|
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? |
|
Thanks for pinging me @srowen.
Yes, that is the reason that |
|
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. |
|
Yes, I think the point here is that the parameter is part of |
|
Do we need to set |
|
Oh, right, it is already set in |
|
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 <[email protected]> Signed-off-by: Sean Owen <[email protected]> (cherry picked from commit 88a930d) Signed-off-by: Sean Owen <[email protected]>
What changes were proposed in this pull request?
Remove
BisectingKMeansModel.setDistanceMeasuremethod.In
BisectingKMeansModelset this param is meaningless.How was this patch tested?
N/A