File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
mllib/src/main/scala/org/apache/spark/mllib/tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -401,7 +401,7 @@ object DecisionTree extends Serializable with Logging {
401401 */
402402 def isSampleValid (parentFilters : List [Filter ], labeledPoint : LabeledPoint ): Boolean = {
403403 // leaf
404- if ((level > 0 ) & (parentFilters.length == 0 )) {
404+ if ((level > 0 ) && (parentFilters.length == 0 )) {
405405 return false
406406 }
407407
@@ -454,7 +454,7 @@ object DecisionTree extends Serializable with Logging {
454454 val bin = binForFeatures(mid)
455455 val lowThreshold = bin.lowSplit.threshold
456456 val highThreshold = bin.highSplit.threshold
457- if ((lowThreshold < feature) & (highThreshold >= feature)){
457+ if ((lowThreshold < feature) && (highThreshold >= feature)){
458458 return mid
459459 }
460460 else if (lowThreshold >= feature) {
You can’t perform that action at this time.
0 commit comments