Github user yanboliang commented on a diff in the pull request:

    https://github.com/apache/spark/pull/7065#discussion_r33420498
  
    --- Diff: mllib/src/main/scala/org/apache/spark/mllib/feature/PCA.scala ---
    @@ -68,7 +68,7 @@ class PCA(val k: Int) {
      * @param k number of principal components.
      * @param pc a principal components Matrix. Each column is one principal 
component.
      */
    -class PCAModel private[mllib] (val k: Int, val pc: DenseMatrix) extends 
VectorTransformer {
    +class PCAModel private[spark] (val k: Int, val pc: DenseMatrix) extends 
VectorTransformer {
    --- End diff --
    
    Because test case of 
ml.feature.PCASuite(https://github.com/apache/spark/pull/7065/files#diff-e1593bb9e311c3f2a2ea49cce20ed671R34)
 use the constructor, so I change it to spark private like Word2VecModel.
    There are different access permission of constructors in mllib.feature, 
some are private[spark] while others are public. I think it's confusion and 
need to uniform in a separate task.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to