Skip to content

Commit edd9d48

Browse files
committed
Fix default param initialization
1 parent 17e1a76 commit edd9d48

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mllib/src/main/scala/org/apache/spark/ml/feature/StandardScaler.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ private[feature] trait StandardScalerParams extends Params with HasInputCol with
4040
)
4141
}
4242

43-
setDefault(withMean -> false, withStd -> true)
43+
4444

4545
/**
4646
* :: AlphaComponent ::
@@ -50,6 +50,8 @@ setDefault(withMean -> false, withStd -> true)
5050
@AlphaComponent
5151
class StandardScaler extends Estimator[StandardScalerModel] with StandardScalerParams {
5252

53+
setDefault(withMean -> false, withStd -> true)
54+
5355
/** @group setParam */
5456
def setInputCol(value: String): this.type = set(inputCol, value)
5557

0 commit comments

Comments
 (0)