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
0af44ac8
Commit
0af44ac8
authored
Dec 29, 2017
by
Guolin Ke
Browse files
fix a warning.
parent
3b13f95a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/c_api.cpp
src/c_api.cpp
+1
-1
No files found.
src/c_api.cpp
View file @
0af44ac8
...
...
@@ -561,7 +561,7 @@ int LGBM_DatasetCreateFromCSR(const void* indptr,
auto
idx
=
sample_indices
[
i
];
auto
row
=
get_row_fun
(
static_cast
<
int
>
(
idx
));
for
(
std
::
pair
<
int
,
double
>&
inner_data
:
row
)
{
CHECK
(
static_cast
<
size_t
>
(
inner_data
.
first
)
<
num_col
);
CHECK
(
inner_data
.
first
<
num_col
);
if
(
std
::
fabs
(
inner_data
.
second
)
>
kZeroThreshold
||
std
::
isnan
(
inner_data
.
second
))
{
sample_values
[
inner_data
.
first
].
emplace_back
(
inner_data
.
second
);
sample_idx
[
inner_data
.
first
].
emplace_back
(
static_cast
<
int
>
(
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