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
"...git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "bbeecc09af946c5ff9b84d1ada4749a9f26bca31"
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
Hide 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,
...
@@ -707,7 +707,7 @@ void DatasetLoader::ConstructBinMappersFromTextData(int rank, int num_machines,
dataset
->
feature_names_
=
feature_names_
;
dataset
->
feature_names_
=
feature_names_
;
std
::
vector
<
std
::
unique_ptr
<
BinMapper
>>
bin_mappers
(
sample_values
.
size
());
std
::
vector
<
std
::
unique_ptr
<
BinMapper
>>
bin_mappers
(
sample_values
.
size
());
const
data_size_t
filter_cnt
=
static_cast
<
data_size_t
>
(
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
// start find bins
if
(
num_machines
==
1
)
{
if
(
num_machines
==
1
)
{
...
@@ -1031,4 +1031,4 @@ std::string DatasetLoader::CheckCanLoadFromBin(const char* filename) {
...
@@ -1031,4 +1031,4 @@ std::string DatasetLoader::CheckCanLoadFromBin(const char* filename) {
}
}
}
}
\ No newline at end of file
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