pass build

This commit is contained in:
tqchen@graphlab.com
2014-08-27 19:19:04 -07:00
parent 8aeb038ddd
commit 075dc9a998
4 changed files with 288 additions and 8 deletions

18
src/gbm/gbm.cpp Normal file
View File

@@ -0,0 +1,18 @@
#define _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_DEPRECATE
#include <cstring>
#include "./gbm.h"
#include "./gbtree-inl.hpp"
#include "./gblinear-inl.hpp"
namespace xgboost {
namespace gbm {
IGradBooster* CreateGradBooster(const char *name) {
if (!strcmp("gbtree", name)) return new GBTree();
if (!strcmp("gblinear", name)) return new GBLinear();
utils::Error("unknown booster type: %s", name);
return NULL;
}
} // namespace gbm
} // namespace xgboost