Closed weixuanfu closed 6 years ago
There is an option DMLC_LOG_BEFORE_THROW
set in include/dmlc/base.h
. This is used in /dmlc-core/include/dmlc/logging.h
to determine whether to write to stderr in LogMessageFatal
. The easiest option is to set this to zero to prevent this behaviour.
In order for the silent option in python to suppress these messages, we need to find some way to pass it into the logging init function, possibly then setting glog's FLAGS_logtostderr = 0
.
silent
parameter in xgboost's python api fails to prevent XGBClassifier from printing out error message. It happens if no feature is left by feature selection steps before using XGBClassifier. But it could happen in grid search or other optimization methods for tuning parameter.Environment info
Operating System:
macOS 10.1.2.5
Compiler:
gcc-6 (Homebrew GCC 6.3.0_1 --without-multilib) 6.3.0
Package used (python/R/jvm/C++):
xgboost
version used: 0.60 and 0.60a2If you are using python package, please provide
Steps to reproduce
Or
Output: