From 5fbfa00b426778fdd3c5bf907ab030444849e648 Mon Sep 17 00:00:00 2001 From: Nikita Titov Date: Thu, 28 Oct 2021 02:35:54 +0300 Subject: [PATCH] Add some warnings when loading dataset from binary file (#4724) --- src/io/dataset_loader.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/io/dataset_loader.cpp b/src/io/dataset_loader.cpp index 6dbbf3db7f5..4283b5ebb22 100644 --- a/src/io/dataset_loader.cpp +++ b/src/io/dataset_loader.cpp @@ -850,6 +850,12 @@ void DatasetLoader::CheckDataset(const Dataset* dataset, bool is_load_from_binar if (config_.ignore_column != "") { Log::Warning("Config ignore_column works only in case of loading data directly from text file. It will be ignored when loading from binary file."); } + if (config_.two_round) { + Log::Warning("Config two_round works only in case of loading data directly from text file. It will be ignored when loading from binary file."); + } + if (config_.header) { + Log::Warning("Config header works only in case of loading data directly from text file. It will be ignored when loading from binary file."); + } } }