first version that reproduce binary classification demo

This commit is contained in:
tqchen
2014-08-16 15:44:35 -07:00
parent c4acb4fe01
commit 2c969ecf14
11 changed files with 286 additions and 20 deletions

View File

@@ -3,15 +3,15 @@ export CXX = clang++
export CFLAGS = -Wall -O3 -msse2 -Wno-unknown-pragmas
# specify tensor path
BIN = xgunity.exe
BIN = xgboost
OBJ = io.o
.PHONY: clean all
all: $(BIN) $(OBJ)
export LDFLAGS= -pthread -lm
xgunity.exe: src/xgunity.cpp
io.o: src/io/io.cpp
xgboost: src/xgboost_main.cpp io.o src/data.h src/tree/*.h src/tree/*.hpp src/gbm/*.h src/gbm/*.hpp src/utils/*.h src/learner/*.h src/learner/*.hpp
io.o: src/io/io.cpp src/data.h src/utils/*.h
$(BIN) :
$(CXX) $(CFLAGS) $(LDFLAGS) -o $@ $(filter %.cpp %.o %.c, $^)
@@ -24,4 +24,3 @@ install:
clean:
$(RM) $(OBJ) $(BIN) *~ */*~ */*/*~