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
ed3d774c
Unverified
Commit
ed3d774c
authored
May 04, 2018
by
Guolin Ke
Committed by
GitHub
May 04, 2018
Browse files
fix max_drop checking
parent
04d37f9b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
src/io/config.cpp
src/io/config.cpp
+0
-1
No files found.
src/io/config.cpp
View file @
ed3d774c
...
@@ -454,7 +454,6 @@ void BoostingConfig::Set(const std::unordered_map<std::string, std::string>& par
...
@@ -454,7 +454,6 @@ void BoostingConfig::Set(const std::unordered_map<std::string, std::string>& par
CHECK
(
drop_rate
<=
1.0
&&
drop_rate
>=
0.0
);
CHECK
(
drop_rate
<=
1.0
&&
drop_rate
>=
0.0
);
CHECK
(
skip_drop
<=
1.0
&&
skip_drop
>=
0.0
);
CHECK
(
skip_drop
<=
1.0
&&
skip_drop
>=
0.0
);
GetInt
(
params
,
"max_drop"
,
&
max_drop
);
GetInt
(
params
,
"max_drop"
,
&
max_drop
);
CHECK
(
max_drop
>
0
);
GetBool
(
params
,
"xgboost_dart_mode"
,
&
xgboost_dart_mode
);
GetBool
(
params
,
"xgboost_dart_mode"
,
&
xgboost_dart_mode
);
GetBool
(
params
,
"uniform_drop"
,
&
uniform_drop
);
GetBool
(
params
,
"uniform_drop"
,
&
uniform_drop
);
GetDouble
(
params
,
"top_rate"
,
&
top_rate
);
GetDouble
(
params
,
"top_rate"
,
&
top_rate
);
...
...
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