diff options
author | sethah <seth.hendrickson16@gmail.com> | 2016-11-05 22:38:07 -0700 |
---|---|---|
committer | Yanbo Liang <ybliang8@gmail.com> | 2016-11-05 22:38:07 -0700 |
commit | 23ce0d1e91076d90c1a87d698a94d283d08cf899 (patch) | |
tree | 1224cab695176c4a59b841d08111b099aee7e2d4 /sql/core/src/test/resources/sql-tests/results/random.sql.out | |
parent | 15d392688456ad9f963417843c52a7b610f771d2 (diff) | |
download | spark-23ce0d1e91076d90c1a87d698a94d283d08cf899.tar.gz spark-23ce0d1e91076d90c1a87d698a94d283d08cf899.tar.bz2 spark-23ce0d1e91076d90c1a87d698a94d283d08cf899.zip |
[SPARK-18276][ML] ML models should copy the training summary and set 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 <seth.hendrickson16@gmail.com>
Closes #15773 from sethah/SPARK-18276.
Diffstat (limited to 'sql/core/src/test/resources/sql-tests/results/random.sql.out')
0 files changed, 0 insertions, 0 deletions