xgboost源码分析
unshaven111
这个作者很懒,什么都没留下…
展开
-
xgboost中的单例
/*\brief Get a global instance. */ static TrainingObserver& Instance() { static TrainingObserver observer; return observer; } 返回一个引用原创 2020-04-21 15:03:56 · 428 阅读 · 0 评论 -
xgboost源码
xgboost源码中处理空格的函数 static std::string TrimWhitespace(const std::string& str) { const auto first_char = str.find_first_not_of(" \t\n\r"); const auto last_char = str.find_last_not_of(" \t\n\r...原创 2020-04-21 14:29:25 · 605 阅读 · 0 评论