์๋ ํ์ธ์,
WIndows 7์ ์ฌ์ฉํ๊ณ ์์ผ๋ฉฐ Python์ฉ XGBoost๋ฅผ ์ค์นํ๋ ค๊ณ ํฉ๋๋ค.
์ด๋ฅผ ์ํด GIT Bash๋ฅผ ์ฌ์ฉํ๊ณ ์์ต๋๋ค.
๋๋ ๋ค์ ํ์ด์ง์ ๋จ๊ณ๋ฅผ ๋ฐ๋์ต๋๋ค-
https://github.com/dmlc/xgboost/blob/master/doc/build.md#building -on-windows
MinGW์๋ ๋ค์๊ณผ ๊ฐ์ make ๋ฒ์ ์ด ์์ต๋๋ค.
mingw32-make bin 3.82.90-2-cvs-20120902
mingw32-make ๋ฌธ์ 3.82.90-2-cvs-20120902
mingw32-make lang 3.82.90-2-cvs-20120902
mingw32-make lic 3.82.90-2-cvs-20120902
๋ค์ g++ ๋ฒ์ -
mingw32-gcc-g++ ๋น 4.9.3-1
mingw32-gcc-g++ ๊ฐ๋ฐ 4.8.1-4
mingw32-gcc-g++ ๋ฌธ์ 4.8.1-4
mingw32-gcc-g++ ๋จ์ 4.9.3-1
๋ค์ ๋ช
๋ น์ ์คํํ ๋-
cp make/mingw64.mk config.mk;
make -j4
๋ ๋ฒ์งธ ๋ช
๋ น์ ๋ํด ๋ค์ ์ค๋ฅ๊ฐ ๋ฐ์ํฉ๋๋ค.
$ make -j4
g++ -m64 -std=c++0x -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops -Iinclude -DDMLC_ENABLE_STD_THREAD=0 -Idmlc-core/include -Irabit/include -fopenmp -MM -MT build/learner.o src/learner.cc >build/learner.d
g++ -m64 -std=c++0x -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops -Iinclude -DDMLC_ENABLE_STD_THREAD=0 -Idmlc-core/include -Irabit/include -fopenmp -MM -MT build/logging.o src/logging.cc >build/logging.d
g++ -m64 -std=c++0x -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops -Iinclude -DDMLC_ENABLE_STD_THREAD=0 -Idmlc-core/include -Irabit/include -fopenmp -MM -MT build/common/common.o src/common/common.cc >build/common/common.d
g++ -m64 -std=c++0x -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops -Iinclude -DDMLC_ENABLE_STD_THREAD=0 -Idmlc-core/include -Irabit/include -fopenmp -MM -MT build/c_api/c_api_error.o src/c_api/c_api_error.cc >build/c_api/c_api_error.d
cc1plus.exe: sorry, unimplemented: 64-bit mode not compiled in
Makefile:97: recipe for target 'build/common/common.o' failed
mingw32-make: *** [build/common/common.o] Error 1
mingw32-make: *** Waiting for unfinished jobs....
cc1plus.exe: sorry, unimplemented: 64-bit mode not compiled in
Makefile:97: recipe for target 'build/c_api/c_api_error.o' failed
mingw32-make: *** [build/c_api/c_api_error.o] Error 1
cc1plus.exe: sorry, unimplemented: 64-bit mode not compiled in
cc1plus.exe: sorry, unimplemented: 64-bit mode not compiled in
Makefile:97: recipe for target 'build/logging.o' failed
mingw32-make: *** [build/logging.o] Error 1
Makefile:97: recipe for target 'build/learner.o' failed
mingw32-make: *** [build/learner.o] Error 1
์ด ๋ฌธ์ ์ ๋ํ ํด๊ฒฐ์ฑ
์ ์ฐพ์ ์ ์๋๋ก ๋์์ฃผ์ธ์.
์ต์ ๋ฒ์ ๋ ์ค์นํ ์ ์์์ต๋๋ค. ๋๊ตฐ๊ฐ๊ฐ ๋๋ฅผ ๋์ธ ์ ์๊ธฐ๋ฅผ ๋ฐ๋๋๋ค. ์ง๊ธ์ ๋ฒ์ 0.40์ ์ฌ์ฉํ๊ณ ์์ต๋๋ค. ์ด ๋ฒ์ ์ ์ค์นํ๋ ๋ฐ ๋์์ด ํ์ํ ์ฌ๋์ด ์์ผ๋ฉด ๊ธฐ๊บผ์ด ๋์๋๋ฆฌ๊ฒ ์ต๋๋ค.
@uastana15 ํ์ฌ mingw32๋ฅผ ์ฌ์ฉ ์ค์ ๋๋ค. mingw64๋ฅผ ์ฌ์ฉํ์ธ์.
@thirdwing ๋ด bash ์ฐฝ์ ์์ฑ๋ mingw64๋ฅผ ์ฌ์ฉํ๊ณ ์๋ค๊ณ ์๊ฐ
@SoulEvill ์ ๋์์ ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค. ์ด๋์๋ถํฐ ์์ํ ์ ์๋์ง ์๋ ค์ฃผ์ธ์.
๋๋์ด ์์
!!
๋ค์์ ๋งค์ฐ ์ ์ฉํ ๋ฆฌ์์ค์
๋๋ค.
http://stackoverflow.com/questions/33749735/how-to-install-xgboost-package-in-python-windows-platform
๊ฐ ํ์ดํ๊น์ง ๋ฐ๋ก ๋ฐ๋ผ๊ฐ์ธ์.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
๋๋์ด ์์ !!
๋ค์์ ๋งค์ฐ ์ ์ฉํ ๋ฆฌ์์ค์ ๋๋ค.
http://stackoverflow.com/questions/33749735/how-to-install-xgboost-package-in-python-windows-platform
๊ฐ ํ์ดํ๊น์ง ๋ฐ๋ก ๋ฐ๋ผ๊ฐ์ธ์.