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
173
173
input.map(x => (- x._1, x._2, x._3))
174
174
}
175
175
176
- val isotonicRegression = parallelPoolAdjacentViolators(preprocessedInput)
176
+ val pooled = parallelPoolAdjacentViolators(preprocessedInput)
177
177
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)
180
180
181
181
new IsotonicRegressionModel (boundaries, predictions, isotonic)
182
182
}
You can’t perform that action at this time.
0 commit comments