Commit d4bec4f2 authored by Guolin Ke's avatar Guolin Ke
Browse files

fix #984 .

parent 7577a363
......@@ -95,7 +95,7 @@ private:
}
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 {
......@@ -104,7 +104,7 @@ private:
}
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);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment