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
3d6c4f35
Commit
3d6c4f35
authored
Aug 12, 2017
by
Guolin Ke
Browse files
fix a warning
parent
c8142e30
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
src/io/dataset.cpp
src/io/dataset.cpp
+0
-2
No files found.
src/io/dataset.cpp
View file @
3d6c4f35
...
@@ -593,12 +593,10 @@ void Dataset::ConstructHistograms(const std::vector<int8_t>& is_feature_used,
...
@@ -593,12 +593,10 @@ void Dataset::ConstructHistograms(const std::vector<int8_t>& is_feature_used,
std
::
vector
<
int
>
used_group
;
std
::
vector
<
int
>
used_group
;
used_group
.
reserve
(
num_groups_
);
used_group
.
reserve
(
num_groups_
);
for
(
int
group
=
0
;
group
<
num_groups_
;
++
group
)
{
for
(
int
group
=
0
;
group
<
num_groups_
;
++
group
)
{
bool
is_groud_used
=
false
;
const
int
f_cnt
=
group_feature_cnt_
[
group
];
const
int
f_cnt
=
group_feature_cnt_
[
group
];
for
(
int
j
=
0
;
j
<
f_cnt
;
++
j
)
{
for
(
int
j
=
0
;
j
<
f_cnt
;
++
j
)
{
const
int
fidx
=
group_feature_start_
[
group
]
+
j
;
const
int
fidx
=
group_feature_start_
[
group
]
+
j
;
if
(
is_feature_used
[
fidx
])
{
if
(
is_feature_used
[
fidx
])
{
is_groud_used
=
true
;
break
;
break
;
}
}
}
}
...
...
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