mv code into src

This commit is contained in:
tqchen 2014-08-15 21:04:23 -07:00
parent 3589e8252f
commit 34dd409c5b
25 changed files with 1 additions and 28 deletions

View File

@ -10,7 +10,7 @@ OBJ =
all: $(BIN) $(OBJ)
export LDFLAGS= -pthread -lm
xgunity.exe: xgunity.cpp
xgunity.exe: src/xgunity.cpp
$(BIN) :

View File

View File

@ -1,27 +0,0 @@
#include "tree/updater.h"
#include "gbm/gbm.h"
#include "utils/omp.h"
#include "utils/utils.h"
#include "utils/random.h"
#include "learner/objective.h"
#include "learner/learner-inl.hpp"
// pass compile flag
using namespace xgboost;
int main(void){
FMatrixS fmat(NULL);
tree::RegTree tree;
tree::TrainParam param;
std::vector<bst_gpair> gpair;
std::vector<unsigned> roots;
tree::IUpdater<FMatrixS> *up = tree::CreateUpdater<FMatrixS>("prune");
gbm::IGradBooster<FMatrixS> *gbm = new gbm::GBTree<FMatrixS>();
std::vector<tree::RegTree*> trees;
learner::IObjFunction *func = learner::CreateObjFunction("reg:linear");
learner::BoostLearner<FMatrixS> *learner= new learner::BoostLearner<FMatrixS>();
up->Update(gpair, fmat, roots, trees);
return 0;
}