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
6a666cc5
Unverified
Commit
6a666cc5
authored
May 08, 2020
by
guanqun
Committed by
GitHub
May 08, 2020
Browse files
typo fix (#3055)
parent
507ce1be
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/io/dataset.cpp
src/io/dataset.cpp
+3
-3
No files found.
src/io/dataset.cpp
View file @
6a666cc5
...
...
@@ -47,7 +47,7 @@ std::vector<std::vector<int>> NoGroup(const std::vector<int>& used_features) {
return
features_in_group
;
}
int
GetConf
i
lctCount
(
const
std
::
vector
<
bool
>&
mark
,
const
int
*
indices
,
int
GetConfl
i
ctCount
(
const
std
::
vector
<
bool
>&
mark
,
const
int
*
indices
,
int
num_indices
,
data_size_t
max_cnt
)
{
int
ret
=
0
;
for
(
int
i
=
0
;
i
<
num_indices
;
++
i
)
{
...
...
@@ -148,7 +148,7 @@ std::vector<std::vector<int>> FindGroups(
const
data_size_t
cnt
=
is_filtered_feature
?
0
:
GetConf
i
lctCount
(
conflict_marks
[
gid
],
sample_indices
[
fidx
],
:
GetConfl
i
ctCount
(
conflict_marks
[
gid
],
sample_indices
[
fidx
],
num_per_col
[
fidx
],
rest_max_cnt
);
if
(
cnt
>=
0
&&
cnt
<=
rest_max_cnt
&&
cnt
<=
cur_non_zero_cnt
/
2
)
{
best_gid
=
gid
;
...
...
@@ -217,7 +217,7 @@ std::vector<std::vector<int>> FindGroups(
if
(
!
is_multi_val
)
{
const
int
rest_max_cnt
=
single_val_max_conflict_cnt
-
conflict_cnt
;
const
auto
cnt
=
GetConf
i
lctCount
(
conflict_marks
.
back
(),
sample_indices
[
fidx
],
GetConfl
i
ctCount
(
conflict_marks
.
back
(),
sample_indices
[
fidx
],
num_per_col
[
fidx
],
rest_max_cnt
);
conflict_cnt
+=
cnt
;
if
(
cnt
<
0
||
conflict_cnt
>
single_val_max_conflict_cnt
)
{
...
...
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