Unverified Commit dc963d9f authored by Belinda Trotta's avatar Belinda Trotta Committed by GitHub
Browse files

Fix typo in ResetConfig (#3392)

parent 4f0f822b
...@@ -719,7 +719,7 @@ void GBDT::ResetConfig(const Config* config) { ...@@ -719,7 +719,7 @@ void GBDT::ResetConfig(const Config* config) {
if (train_data_ != nullptr) { if (train_data_ != nullptr) {
ResetBaggingConfig(new_config.get(), false); ResetBaggingConfig(new_config.get(), false);
} }
if (config_.get() != nullptr && config_->forcedsplits_filename != new_config->forcedbins_filename) { if (config_.get() != nullptr && config_->forcedsplits_filename != new_config->forcedsplits_filename) {
// load forced_splits file // load forced_splits file
if (!new_config->forcedsplits_filename.empty()) { if (!new_config->forcedsplits_filename.empty()) {
std::ifstream forced_splits_file( std::ifstream forced_splits_file(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment