Skip to content

Commit c8428c4

Browse files
committed
fixing weird multiline bug
1 parent afced16 commit c8428c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mllib/src/main/scala/org/apache/spark/mllib/tree/DecisionTree.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,8 +606,8 @@ object DecisionTree extends Serializable with Logging {
606606
val arrIndex = arrShift + featureIndex
607607
// Update the left or right count for one bin.
608608
val aggShift = numClasses * numBins * numFeatures * nodeIndex
609-
val aggIndex = aggShift + numClasses * featureIndex * numBins
610-
+ arr(arrIndex).toInt * numClasses
609+
val aggIndex
610+
= aggShift + numClasses * featureIndex * numBins + arr(arrIndex).toInt * numClasses
611611
val labelInt = label.toInt
612612
agg(aggIndex + labelInt) = agg(aggIndex + labelInt) + 1
613613
}

0 commit comments

Comments
 (0)