Skip to content

Conversation

@sethah
Copy link
Contributor

@sethah sethah commented Nov 4, 2016

What changes were proposed in this pull request?

Only some of the models which contain a training summary currently set the summaries in the copy method. Linear/Logistic regression do, GLR, GMM, KM, and BKM do not. Additionally, these copy methods did not set the parent pointer of the copied model. This patch modifies the copy methods of the four models mentioned above to copy the training summary and set the parent.

How was this patch tested?

Add unit tests in Linear/Logistic/GeneralizedLinear regression and GaussianMixture/KMeans/BisectingKMeans to check the parent pointer of the copied model and check that the copied model has a summary.

@sethah
Copy link
Contributor Author

sethah commented Nov 4, 2016

@yanboliang mind having a look?

@SparkQA
Copy link

SparkQA commented Nov 4, 2016

Test build #68158 has finished for PR 15773 at commit 6bb2871.

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

@SparkQA
Copy link

SparkQA commented Nov 4, 2016

Test build #68159 has finished for PR 15773 at commit c4da811.

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

asfgit pushed a commit that referenced this pull request Nov 6, 2016
…parent

## What changes were proposed in this pull request?

Only some of the models which contain a training summary currently set the summaries in the copy method. Linear/Logistic regression do, GLR, GMM, KM, and BKM do not. Additionally, these copy methods did not set the parent pointer of the copied model. This patch modifies the copy methods of the four models mentioned above to copy the training summary and set the parent.

## How was this patch tested?

Add unit tests in Linear/Logistic/GeneralizedLinear regression and GaussianMixture/KMeans/BisectingKMeans to check the parent pointer of the copied model and check that the copied model has a summary.

Author: sethah <[email protected]>

Closes #15773 from sethah/SPARK-18276.

(cherry picked from commit 23ce0d1)
Signed-off-by: Yanbo Liang <[email protected]>
@asfgit asfgit closed this in 23ce0d1 Nov 6, 2016
@yanboliang
Copy link
Contributor

LGTM, merged into master and branch-2.1. Thanks!

uzadude pushed a commit to uzadude/spark that referenced this pull request Jan 27, 2017
…parent

## What changes were proposed in this pull request?

Only some of the models which contain a training summary currently set the summaries in the copy method. Linear/Logistic regression do, GLR, GMM, KM, and BKM do not. Additionally, these copy methods did not set the parent pointer of the copied model. This patch modifies the copy methods of the four models mentioned above to copy the training summary and set the parent.

## How was this patch tested?

Add unit tests in Linear/Logistic/GeneralizedLinear regression and GaussianMixture/KMeans/BisectingKMeans to check the parent pointer of the copied model and check that the copied model has a summary.

Author: sethah <[email protected]>

Closes apache#15773 from sethah/SPARK-18276.
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.

3 participants