".github/git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "fc4fee09f7c45666e40c82b6f47f476e13a4977f"
Unverified Commit 1113cb7a authored by José Morales's avatar José Morales Committed by GitHub
Browse files

remove unused variables from bin.cpp (#5801)

parent cb89de8b
......@@ -160,20 +160,6 @@ namespace LightGBM {
const std::vector<double>& forced_upper_bounds) {
std::vector<double> bin_upper_bound;
// get list of distinct values
int left_cnt_data = 0;
int cnt_zero = 0;
int right_cnt_data = 0;
for (int i = 0; i < num_distinct_values; ++i) {
if (distinct_values[i] <= -kZeroThreshold) {
left_cnt_data += counts[i];
} else if (distinct_values[i] > kZeroThreshold) {
right_cnt_data += counts[i];
} else {
cnt_zero += counts[i];
}
}
// get number of positive and negative distinct values
int left_cnt = -1;
for (int i = 0; i < num_distinct_values; ++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