python - Can xgboost.DMatrix be silent by set "silent=True" -


i learning xgboost. want finish demonstration xgboost python api. when use function "xgboost.dmatrix" data set file,silent set true. however, function "xgboost.dmatrix" output message "[23:28:44] 1441x10 matrix 11528 entries loaded file_name". setting error parameters? reference

this interesting. silent value taken , passed wrapper, seems wrapper doesn't use !

this shows appropriate code https://github.com/dmlc/xgboost/blob/master/src/c_api/c_api.cc#l202

which says:

int xgdmatrixcreatefromfile(const char *fname,                             int silent,                             dmatrixhandle *out) {   api_begin();   if (rabit::isdistributed()) {     log(console) << "xgboost distributed mode detected, "                  << "will split data among workers";   }   *out = new std::shared_ptr<dmatrix>(dmatrix::load(fname, false, true));   api_end(); } 

i.e. though silent argument, not used in function anywhere ... (very weird)

so, seems right now, if you're using of wrappers (python, r, julia, etc) silent functionality dmatrix won't work.


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -