diff options
author | Yanbo Liang <ybliang8@gmail.com> | 2015-11-22 21:56:07 -0800 |
---|---|---|
committer | Xiangrui Meng <meng@databricks.com> | 2015-11-22 21:56:07 -0800 |
commit | d9cf9c21fc6b1aa22e68d66760afd42c4e1c18b8 (patch) | |
tree | d49602f3ebe461236ea5c27294deeadea610dbd5 /tools/src | |
parent | fc4b792d287095d70379a51f117c225d8d857078 (diff) | |
download | spark-d9cf9c21fc6b1aa22e68d66760afd42c4e1c18b8.tar.gz spark-d9cf9c21fc6b1aa22e68d66760afd42c4e1c18b8.tar.bz2 spark-d9cf9c21fc6b1aa22e68d66760afd42c4e1c18b8.zip |
[SPARK-11912][ML] ml.feature.PCA minor refactor
Like [SPARK-11852](https://issues.apache.org/jira/browse/SPARK-11852), ```k``` is params and we should save it under ```metadata/``` rather than both under ```data/``` and ```metadata/```. Refactor the constructor of ```ml.feature.PCAModel``` to take only ```pc``` but construct ```mllib.feature.PCAModel``` inside ```transform```.
Author: Yanbo Liang <ybliang8@gmail.com>
Closes #9897 from yanboliang/spark-11912.
Diffstat (limited to 'tools/src')
0 files changed, 0 insertions, 0 deletions