mv code into src
This commit is contained in:
parent
3589e8252f
commit
34dd409c5b
2
Makefile
2
Makefile
@ -10,7 +10,7 @@ OBJ =
|
||||
all: $(BIN) $(OBJ)
|
||||
export LDFLAGS= -pthread -lm
|
||||
|
||||
xgunity.exe: xgunity.cpp
|
||||
xgunity.exe: src/xgunity.cpp
|
||||
|
||||
|
||||
$(BIN) :
|
||||
|
||||
27
xgunity.cpp
27
xgunity.cpp
@ -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;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user