File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
mllib/src/main/scala/org/apache/spark/mllib/regression Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -173,10 +173,10 @@ class IsotonicRegression private (private var isotonic: Boolean) extends Seriali
173173 input.map(x => (- x._1, x._2, x._3))
174174 }
175175
176- val isotonicRegression = parallelPoolAdjacentViolators(preprocessedInput)
176+ val pooled = parallelPoolAdjacentViolators(preprocessedInput)
177177
178- val predictions = if (isotonic) isotonicRegression .map(_._1) else isotonicRegression .map(- _._1)
179- val boundaries = isotonicRegression .map(_._2)
178+ val predictions = if (isotonic) pooled .map(_._1) else pooled .map(- _._1)
179+ val boundaries = pooled .map(_._2)
180180
181181 new IsotonicRegressionModel (boundaries, predictions, isotonic)
182182 }
You can’t perform that action at this time.
0 commit comments