Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
a0efb07b
Commit
a0efb07b
authored
Nov 06, 2018
by
Guolin Ke
Browse files
clean warning
parent
6d331d96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/objective/regression_objective.hpp
src/objective/regression_objective.hpp
+1
-1
No files found.
src/objective/regression_objective.hpp
View file @
a0efb07b
...
@@ -48,7 +48,7 @@ namespace LightGBM {
...
@@ -48,7 +48,7 @@ namespace LightGBM {
}\
}\
double threshold = weighted_cdf[cnt_data - 1] * alpha;\
double threshold = weighted_cdf[cnt_data - 1] * alpha;\
size_t pos = std::upper_bound(weighted_cdf.begin(), weighted_cdf.end(), threshold) - weighted_cdf.begin();\
size_t pos = std::upper_bound(weighted_cdf.begin(), weighted_cdf.end(), threshold) - weighted_cdf.begin();\
if (pos == 0 || pos == cnt_data - 1) {\
if (pos == 0 || pos ==
static_cast<size_t>(
cnt_data - 1)
)
{\
return data_reader(sorted_idx[pos]);\
return data_reader(sorted_idx[pos]);\
}\
}\
CHECK(threshold >= weighted_cdf[pos - 1]);\
CHECK(threshold >= weighted_cdf[pos - 1]);\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment