Skip to content

Commit

Permalink
fix #984 .
Browse files Browse the repository at this point in the history
  • Loading branch information
guolinke committed Oct 27, 2017
1 parent 7577a36 commit d4bec4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/boosting/dart.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class DART: public GBDT {
}
for (int i = 0; i < iter_; ++i) {
if (random_for_drop_.NextFloat() < drop_rate * tree_weight_[i] * inv_average_weight) {
drop_index_.push_back(i);
drop_index_.push_back(num_init_iteration_ + i);
}
}
} else {
Expand All @@ -104,7 +104,7 @@ class DART: public GBDT {
}
for (int i = 0; i < iter_; ++i) {
if (random_for_drop_.NextFloat() < drop_rate) {
drop_index_.push_back(i);
drop_index_.push_back(num_init_iteration_ + i);
}
}
}
Expand Down

0 comments on commit d4bec4f

Please sign in to comment.