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
f155379c
Commit
f155379c
authored
May 13, 2020
by
Guolin Ke
Browse files
fix a bug in goss
parent
b60294b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/boosting/goss.hpp
src/boosting/goss.hpp
+5
-1
No files found.
src/boosting/goss.hpp
View file @
f155379c
...
@@ -59,7 +59,11 @@ class GOSS: public GBDT {
...
@@ -59,7 +59,11 @@ class GOSS: public GBDT {
balanced_bagging_
=
false
;
balanced_bagging_
=
false
;
bag_data_indices_
.
resize
(
num_data_
);
bag_data_indices_
.
resize
(
num_data_
);
bagging_runner_
.
ReSize
(
num_data_
);
bagging_runner_
.
ReSize
(
num_data_
);
bagging_rands_
.
clear
();
for
(
int
i
=
0
;
i
<
(
num_data_
+
bagging_rand_block_
-
1
)
/
bagging_rand_block_
;
++
i
)
{
bagging_rands_
.
emplace_back
(
config_
->
bagging_seed
+
i
);
}
is_use_subset_
=
false
;
is_use_subset_
=
false
;
if
(
config_
->
top_rate
+
config_
->
other_rate
<=
0.5
)
{
if
(
config_
->
top_rate
+
config_
->
other_rate
<=
0.5
)
{
auto
bag_data_cnt
=
static_cast
<
data_size_t
>
((
config_
->
top_rate
+
config_
->
other_rate
)
*
num_data_
);
auto
bag_data_cnt
=
static_cast
<
data_size_t
>
((
config_
->
top_rate
+
config_
->
other_rate
)
*
num_data_
);
...
...
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