Skip to content

Commit

Permalink
lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Apr 6, 2020
1 parent 420ff7f commit f9909cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tree/updater_multi_exact.h
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ class MultiValueConstraint {
float constraint = monotone_[nidx];
if (constraint == 0) {
return gain;
} else if(constraint > 0) {
} else if (constraint > 0) {
if (AnyLE(left_weight, right_weight)) {
return gain;
} else {
Expand Down Expand Up @@ -425,7 +425,7 @@ class MultiExact : public TreeUpdater {

bool NeedForward(SparsePage::Inst const &column, TrainParam const& p) const {
return p.default_direction == 2 ||
((column.size() != gpairs_.size()) && // with missing
((column.size() != gpairs_.size()) && // with missing
!(column.size() != 0 &&
column[0].fvalue == column[column.size() - 1].fvalue));
}
Expand Down

0 comments on commit f9909cf

Please sign in to comment.