We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc795e4 commit 9c51eefCopy full SHA for 9c51eef
mllib/src/main/scala/org/apache/spark/mllib/feature/StandardScaler.scala
@@ -102,7 +102,7 @@ class StandardScalerModel private[mllib] (
102
case dv: DenseVector =>
103
val values = dv.values.clone()
104
var i = 0
105
- if(withStd) {
+ if (withStd) {
106
val localFactor = factor
107
while (i < values.length) {
108
values(i) = (values(i) - localShift(i)) * localFactor(i)
0 commit comments