Skip to content

Commit ac77859

Browse files
committed
fix style error
1 parent fb30d79 commit ac77859

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,10 @@ object Bucketizer {
136136
feature: Double,
137137
lowerInclusive: Boolean,
138138
upperInclusive: Boolean): Double = {
139-
if ((feature < splits.head && !lowerInclusive) || (feature > splits.last && !upperInclusive))
139+
if ((feature < splits.head && !lowerInclusive) || (feature > splits.last && !upperInclusive)) {
140140
throw new Exception(s"Feature $feature out of bound, check your features or loose the" +
141141
s" lower/upper bound constraint.")
142+
}
142143
var left = 0
143144
var right = splits.length - 2
144145
while (left <= right) {

0 commit comments

Comments
 (0)