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
1f3c4616
Commit
1f3c4616
authored
May 14, 2017
by
Guolin Ke
Committed by
GitHub
May 14, 2017
Browse files
change the Check for `min_sum_hessian_in_leaf` .
parent
358553d0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/io/config.cpp
src/io/config.cpp
+1
-1
No files found.
src/io/config.cpp
View file @
1f3c4616
...
@@ -297,7 +297,7 @@ void MetricConfig::Set(const std::unordered_map<std::string, std::string>& param
...
@@ -297,7 +297,7 @@ void MetricConfig::Set(const std::unordered_map<std::string, std::string>& param
void
TreeConfig
::
Set
(
const
std
::
unordered_map
<
std
::
string
,
std
::
string
>&
params
)
{
void
TreeConfig
::
Set
(
const
std
::
unordered_map
<
std
::
string
,
std
::
string
>&
params
)
{
GetInt
(
params
,
"min_data_in_leaf"
,
&
min_data_in_leaf
);
GetInt
(
params
,
"min_data_in_leaf"
,
&
min_data_in_leaf
);
GetDouble
(
params
,
"min_sum_hessian_in_leaf"
,
&
min_sum_hessian_in_leaf
);
GetDouble
(
params
,
"min_sum_hessian_in_leaf"
,
&
min_sum_hessian_in_leaf
);
CHECK
(
min_sum_hessian_in_leaf
>
1.0
f
||
min_data_in_leaf
>
0
);
CHECK
(
min_sum_hessian_in_leaf
>
0
||
min_data_in_leaf
>
0
);
GetDouble
(
params
,
"lambda_l1"
,
&
lambda_l1
);
GetDouble
(
params
,
"lambda_l1"
,
&
lambda_l1
);
CHECK
(
lambda_l1
>=
0.0
f
);
CHECK
(
lambda_l1
>=
0.0
f
);
GetDouble
(
params
,
"lambda_l2"
,
&
lambda_l2
);
GetDouble
(
params
,
"lambda_l2"
,
&
lambda_l2
);
...
...
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