Skip to content

Commit

Permalink
style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hhbyyh committed Mar 23, 2016
1 parent 1b36deb commit 72d104d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
package org.apache.spark.ml.feature

import org.apache.hadoop.fs.Path
import org.apache.spark.SparkException

import org.apache.spark.SparkException
import org.apache.spark.annotation.{Experimental, Since}
import org.apache.spark.ml.{Estimator, Model}
import org.apache.spark.ml.param._
Expand Down Expand Up @@ -129,7 +129,7 @@ class Imputer @Since("2.0.0")(override val uid: String)
(prev, data) => (prev, data) match { case ((mean, count), data) =>
var i = 0
while (i < mean.length) {
if (data(i) != 0 && !data(i).isNaN){
if (data(i) != 0 && !data(i).isNaN) {
count(i) += 1
mean(i) = mean(i) + (data(i) - mean(i)) / count(i)
}
Expand Down

0 comments on commit 72d104d

Please sign in to comment.