Skip to content

Commit

Permalink
pass train dataset parser config to valid dataset loading parser
Browse files Browse the repository at this point in the history
  • Loading branch information
chjinche committed Jan 25, 2022
1 parent 0075814 commit e380580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/dataset_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>(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);
}
Expand Down

0 comments on commit e380580

Please sign in to comment.