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
d4bec4f2
Commit
d4bec4f2
authored
Oct 27, 2017
by
Guolin Ke
Browse files
fix #984 .
parent
7577a363
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/boosting/dart.hpp
src/boosting/dart.hpp
+2
-2
No files found.
src/boosting/dart.hpp
View file @
d4bec4f2
...
@@ -95,7 +95,7 @@ private:
...
@@ -95,7 +95,7 @@ private:
}
}
for
(
int
i
=
0
;
i
<
iter_
;
++
i
)
{
for
(
int
i
=
0
;
i
<
iter_
;
++
i
)
{
if
(
random_for_drop_
.
NextFloat
()
<
drop_rate
*
tree_weight_
[
i
]
*
inv_average_weight
)
{
if
(
random_for_drop_
.
NextFloat
()
<
drop_rate
*
tree_weight_
[
i
]
*
inv_average_weight
)
{
drop_index_
.
push_back
(
i
);
drop_index_
.
push_back
(
num_init_iteration_
+
i
);
}
}
}
}
}
else
{
}
else
{
...
@@ -104,7 +104,7 @@ private:
...
@@ -104,7 +104,7 @@ private:
}
}
for
(
int
i
=
0
;
i
<
iter_
;
++
i
)
{
for
(
int
i
=
0
;
i
<
iter_
;
++
i
)
{
if
(
random_for_drop_
.
NextFloat
()
<
drop_rate
)
{
if
(
random_for_drop_
.
NextFloat
()
<
drop_rate
)
{
drop_index_
.
push_back
(
i
);
drop_index_
.
push_back
(
num_init_iteration_
+
i
);
}
}
}
}
}
}
...
...
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