Skip to content

[SPARK-14634][ML] Add BisectingKMeansSummary #12394

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

Closed
wants to merge 1 commit into from

Conversation

zhengruifeng
Copy link
Contributor

What changes were proposed in this pull request?

Add BisectingKMeansSummary

How was this patch tested?

unit test

@SparkQA
Copy link

SparkQA commented Apr 14, 2016

Test build #55820 has finished for PR 12394 at commit 7b8f308.

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

@zhengruifeng
Copy link
Contributor Author

cc @jkbradley

@yanboliang
Copy link
Contributor

This looks good.

@zhengruifeng
Copy link
Contributor Author

cc @jkbradley @mengxr Summary for BisectingKMeans is still missing now

@SparkQA
Copy link

SparkQA commented May 17, 2016

Test build #58702 has finished for PR 12394 at commit 7b8f308.

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

@zhengruifeng
Copy link
Contributor Author

cc @mengxr

@SparkQA
Copy link

SparkQA commented Sep 30, 2016

Test build #66156 has finished for PR 12394 at commit 64ce1a7.

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

@zhengruifeng
Copy link
Contributor Author

@yanboliang Could you please have a review?

@yanboliang
Copy link
Contributor

Jenkins, test this please.

@SparkQA
Copy link

SparkQA commented Oct 14, 2016

Test build #66958 has finished for PR 12394 at commit 64ce1a7.

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

@yanboliang
Copy link
Contributor

LGTM, merged into master. Thanks!

@asfgit asfgit closed this in a1b136d Oct 14, 2016
@zhengruifeng zhengruifeng deleted the biKMSummary branch October 17, 2016 03:01
Copy link
Member

@jkbradley jkbradley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just saw this. Sorry to come late to the discussion.

This looks good, but I realized I messed up when reviewing the similar KMeansSummary for 2.0: I should have separated a Summary from a TrainingSummary. Maybe it's not important for clustering, so no need to change this PR. But in the future, for other models, let's try to separate the 2. It's really important for linear models, and it might become more important for others as well. Thanks!
@zhengruifeng @yanboliang does that sound good?

val model = copyValues(new BisectingKMeansModel(uid, parentModel).setParent(this))
val summary = new BisectingKMeansSummary(
model.transform(dataset), $(predictionCol), $(featuresCol), $(k))
model.setSummary(summary)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a superfluous call.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, I will del this line ASAP. Thanks for your comment!

@yanboliang
Copy link
Contributor

@jkbradley Sounds good to me!

@zhengruifeng
Copy link
Contributor Author

@jkbradley +1 Sounds good.

ghost pushed a commit to dbtsai/spark that referenced this pull request Oct 25, 2016
## What changes were proposed in this pull request?
As commented by jkbradley in apache#12394, `model.setSummary(summary)` is superfluous

## How was this patch tested?
existing tests

Author: Zheng RuiFeng <ruifengz@foxmail.com>

Closes apache#15619 from zhengruifeng/del_superfluous.
robert3005 pushed a commit to palantir/spark that referenced this pull request Nov 1, 2016
## What changes were proposed in this pull request?
Add BisectingKMeansSummary

## How was this patch tested?
unit test

Author: Zheng RuiFeng <ruifengz@foxmail.com>

Closes apache#12394 from zhengruifeng/biKMSummary.
robert3005 pushed a commit to palantir/spark that referenced this pull request Nov 1, 2016
## What changes were proposed in this pull request?
As commented by jkbradley in apache#12394, `model.setSummary(summary)` is superfluous

## How was this patch tested?
existing tests

Author: Zheng RuiFeng <ruifengz@foxmail.com>

Closes apache#15619 from zhengruifeng/del_superfluous.
uzadude pushed a commit to uzadude/spark that referenced this pull request Jan 27, 2017
## What changes were proposed in this pull request?
Add BisectingKMeansSummary

## How was this patch tested?
unit test

Author: Zheng RuiFeng <ruifengz@foxmail.com>

Closes apache#12394 from zhengruifeng/biKMSummary.
uzadude pushed a commit to uzadude/spark that referenced this pull request Jan 27, 2017
## What changes were proposed in this pull request?
As commented by jkbradley in apache#12394, `model.setSummary(summary)` is superfluous

## How was this patch tested?
existing tests

Author: Zheng RuiFeng <ruifengz@foxmail.com>

Closes apache#15619 from zhengruifeng/del_superfluous.
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.

4 participants