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
db3d1f89
Commit
db3d1f89
authored
Apr 09, 2017
by
Guolin Ke
Committed by
GitHub
Apr 09, 2017
Browse files
fix a bug of filter count.
parent
5b355b00
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/io/dataset_loader.cpp
src/io/dataset_loader.cpp
+2
-2
No files found.
src/io/dataset_loader.cpp
View file @
db3d1f89
...
...
@@ -707,7 +707,7 @@ void DatasetLoader::ConstructBinMappersFromTextData(int rank, int num_machines,
dataset
->
feature_names_
=
feature_names_
;
std
::
vector
<
std
::
unique_ptr
<
BinMapper
>>
bin_mappers
(
sample_values
.
size
());
const
data_size_t
filter_cnt
=
static_cast
<
data_size_t
>
(
static_cast
<
double
>
(
io_config_
.
min_data_in_leaf
*
sample_
values
.
size
())
/
dataset
->
num_data_
);
static_cast
<
double
>
(
io_config_
.
min_data_in_leaf
*
sample_
data
.
size
())
/
dataset
->
num_data_
);
// start find bins
if
(
num_machines
==
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