File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
mllib/src/main/scala/org/apache/spark Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -491,8 +491,8 @@ class GaussianMixture @Since("2.0.0") (
491491@ Since (" 2.0.0" )
492492object GaussianMixture extends DefaultParamsReadable [GaussianMixture ] {
493493
494- /** Limit number of features such that numFeatures^2^ < Integer .MaxValue */
495- private [clustering] val MAX_NUM_FEATURES = 46000
494+ /** Limit number of features such that numFeatures^2^ < Int .MaxValue */
495+ private [clustering] val MAX_NUM_FEATURES = math.sqrt( Int . MaxValue ).toInt
496496
497497 @ Since (" 2.0.0" )
498498 override def load (path : String ): GaussianMixture = super .load(path)
Original file line number Diff line number Diff line change @@ -278,8 +278,8 @@ class GaussianMixture private (
278278
279279private [clustering] object GaussianMixture {
280280
281- /** Limit number of features such that numFeatures^2^ < Integer .MaxValue */
282- private [clustering] val MAX_NUM_FEATURES = 46000
281+ /** Limit number of features such that numFeatures^2^ < Int .MaxValue */
282+ private [clustering] val MAX_NUM_FEATURES = math.sqrt( Int . MaxValue ).toInt
283283
284284 /**
285285 * Heuristic to distribute the computation of the `MultivariateGaussian`s, approximately when
You can’t perform that action at this time.
0 commit comments