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
1113cb7a
"git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "babf01c2f61739e3dac04dfab56dcd616003228d"
Unverified
Commit
1113cb7a
authored
Mar 28, 2023
by
José Morales
Committed by
GitHub
Mar 28, 2023
Browse files
remove unused variables from bin.cpp (#5801)
parent
cb89de8b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
src/io/bin.cpp
src/io/bin.cpp
+0
-14
No files found.
src/io/bin.cpp
View file @
1113cb7a
...
@@ -160,20 +160,6 @@ namespace LightGBM {
...
@@ -160,20 +160,6 @@ namespace LightGBM {
const
std
::
vector
<
double
>&
forced_upper_bounds
)
{
const
std
::
vector
<
double
>&
forced_upper_bounds
)
{
std
::
vector
<
double
>
bin_upper_bound
;
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
// get number of positive and negative distinct values
int
left_cnt
=
-
1
;
int
left_cnt
=
-
1
;
for
(
int
i
=
0
;
i
<
num_distinct_values
;
++
i
)
{
for
(
int
i
=
0
;
i
<
num_distinct_values
;
++
i
)
{
...
...
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