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
fe8e2162
Commit
fe8e2162
authored
Jan 01, 2018
by
Guolin Ke
Browse files
fix `output_freq` alias.
parent
487fbbc9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
include/LightGBM/config.h
include/LightGBM/config.h
+1
-0
src/io/config.cpp
src/io/config.cpp
+1
-1
No files found.
include/LightGBM/config.h
View file @
fe8e2162
...
@@ -444,6 +444,7 @@ struct ParameterAlias {
...
@@ -444,6 +444,7 @@ struct ParameterAlias {
{
"workers"
,
"machines"
},
{
"workers"
,
"machines"
},
{
"nodes"
,
"machines"
},
{
"nodes"
,
"machines"
},
{
"subsample_for_bin"
,
"bin_construct_sample_cnt"
},
{
"subsample_for_bin"
,
"bin_construct_sample_cnt"
},
{
"metric_freq"
,
"output_freq"
}
});
});
const
std
::
unordered_set
<
std
::
string
>
parameter_set
({
const
std
::
unordered_set
<
std
::
string
>
parameter_set
({
"config"
,
"config_file"
,
"task"
,
"device"
,
"config"
,
"config_file"
,
"task"
,
"device"
,
...
...
src/io/config.cpp
View file @
fe8e2162
...
@@ -422,7 +422,7 @@ void BoostingConfig::Set(const std::unordered_map<std::string, std::string>& par
...
@@ -422,7 +422,7 @@ void BoostingConfig::Set(const std::unordered_map<std::string, std::string>& par
CHECK
(
learning_rate
>
0.0
f
);
CHECK
(
learning_rate
>
0.0
f
);
GetInt
(
params
,
"early_stopping_round"
,
&
early_stopping_round
);
GetInt
(
params
,
"early_stopping_round"
,
&
early_stopping_round
);
CHECK
(
early_stopping_round
>=
0
);
CHECK
(
early_stopping_round
>=
0
);
GetInt
(
params
,
"
metric
_freq"
,
&
output_freq
);
GetInt
(
params
,
"
output
_freq"
,
&
output_freq
);
CHECK
(
output_freq
>=
0
);
CHECK
(
output_freq
>=
0
);
GetBool
(
params
,
"is_training_metric"
,
&
is_provide_training_metric
);
GetBool
(
params
,
"is_training_metric"
,
&
is_provide_training_metric
);
GetInt
(
params
,
"num_class"
,
&
num_class
);
GetInt
(
params
,
"num_class"
,
&
num_class
);
...
...
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