Skip to content

Commit

Permalink
fix output_freq alias.
Browse files Browse the repository at this point in the history
  • Loading branch information
guolinke committed Jan 1, 2018
1 parent 487fbbc commit fe8e216
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/LightGBM/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ struct ParameterAlias {
{ "workers", "machines" },
{ "nodes", "machines" },
{ "subsample_for_bin", "bin_construct_sample_cnt" },
{ "metric_freq", "output_freq" }
});
const std::unordered_set<std::string> parameter_set({
"config", "config_file", "task", "device",
Expand Down
2 changes: 1 addition & 1 deletion src/io/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ void BoostingConfig::Set(const std::unordered_map<std::string, std::string>& par
CHECK(learning_rate > 0.0f);
GetInt(params, "early_stopping_round", &early_stopping_round);
CHECK(early_stopping_round >= 0);
GetInt(params, "metric_freq", &output_freq);
GetInt(params, "output_freq", &output_freq);
CHECK(output_freq >= 0);
GetBool(params, "is_training_metric", &is_provide_training_metric);
GetInt(params, "num_class", &num_class);
Expand Down

0 comments on commit fe8e216

Please sign in to comment.