From e3805806fd098d1728263ccbc47c31f1c51eea1b Mon Sep 17 00:00:00 2001 From: Jincheng Chen Date: Tue, 25 Jan 2022 10:27:49 +0000 Subject: [PATCH] pass train dataset parser config to valid dataset loading parser --- src/io/dataset_loader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/dataset_loader.cpp b/src/io/dataset_loader.cpp index 5ab6572b14b9..3eb19b1fca59 100644 --- a/src/io/dataset_loader.cpp +++ b/src/io/dataset_loader.cpp @@ -291,7 +291,7 @@ Dataset* DatasetLoader::LoadFromFileAlignWithOtherDataset(const char* filename, auto bin_filename = CheckCanLoadFromBin(filename); if (bin_filename.size() == 0) { auto parser = std::unique_ptr(Parser::CreateParser(filename, config_.header, 0, label_idx_, - config_.precise_float_parser, dataset->parser_config_str_)); + config_.precise_float_parser, train_data->parser_config_str_)); if (parser == nullptr) { Log::Fatal("Could not recognize data format of %s", filename); }