Skip to content

Commit

Permalink
fix style error
Browse files Browse the repository at this point in the history
  • Loading branch information
yinxusen committed May 8, 2015
1 parent fb30d79 commit ac77859
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,10 @@ object Bucketizer {
feature: Double,
lowerInclusive: Boolean,
upperInclusive: Boolean): Double = {
if ((feature < splits.head && !lowerInclusive) || (feature > splits.last && !upperInclusive))
if ((feature < splits.head && !lowerInclusive) || (feature > splits.last && !upperInclusive)) {
throw new Exception(s"Feature $feature out of bound, check your features or loose the" +
s" lower/upper bound constraint.")
}
var left = 0
var right = splits.length - 2
while (left <= right) {
Expand Down

0 comments on commit ac77859

Please sign in to comment.