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

    https://github.com/apache/spark/pull/4140#discussion_r23486231
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/mllib/feature/StandardScaler.scala ---
    @@ -61,20 +61,30 @@ class StandardScaler(withMean: Boolean, withStd: 
Boolean) extends Logging {
      * :: Experimental ::
      * Represents a StandardScaler model that can transform vectors.
      *
    - * @param withMean whether to center the data before scaling
    - * @param withStd whether to scale the data to have unit standard deviation
      * @param mean column mean values
      * @param variance column variance values
    + * @param withMean whether to center the data before scaling
    + * @param withStd whether to scale the data to have unit standard deviation
      */
     @Experimental
    -class StandardScalerModel private[mllib] (
    -    val withMean: Boolean,
    -    val withStd: Boolean,
    +class StandardScalerModel (
         val mean: Vector,
    -    val variance: Vector) extends VectorTransformer {
    +    val variance: Vector,
    +    private var withMean: Boolean = false,
    +    private var withStd: Boolean = true) extends VectorTransformer {
     
    --- End diff --
    
    Also, users will want to know if `withMean` or `withStd` is used, do we 
really need to have them as private variables?


---
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