Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ object DecisionTree extends Serializable with Logging {
*/
def isSampleValid(parentFilters: List[Filter], labeledPoint: LabeledPoint): Boolean = {
// leaf
if ((level > 0) & (parentFilters.length == 0)) {
if ((level > 0) && (parentFilters.length == 0)) {
return false
}

Expand Down Expand Up @@ -454,7 +454,7 @@ object DecisionTree extends Serializable with Logging {
val bin = binForFeatures(mid)
val lowThreshold = bin.lowSplit.threshold
val highThreshold = bin.highSplit.threshold
if ((lowThreshold < feature) & (highThreshold >= feature)){
if ((lowThreshold < feature) && (highThreshold >= feature)){
return mid
}
else if (lowThreshold >= feature) {
Expand Down