문제

I am a novice in C++, who is trying to implemenent Random Forest Algorithm by Leo Breimen. I have worked with Random Forest algorithm in MATLAB with the code for https://code.google.com/p/randomforest-matlab/ and I am able to train and test with an accuracy of 98% for my Phd thesis, now I need to work with RF using C++. I am trying to use alglib

g++ dataanalysis.cpp -o  analyzer

I tried compiling the dataanalysis.cpp, resulted me with the following error.

http://pastebin.com/bxmRa4pq

Any suggestions of using other multi class Random Forest algorithm (Original algorithm by Breimen)

도움이 되었습니까?

해결책

Check gcc for the path where libalglib.a is installed, for example:

gcc -lalglib -L/my/path/

Check include files, you are adding none or some?

gcc -I/my/path/alglib/include

complete it would look like this

gcc -I/my/path/alglib/include -lalglib -L/my/path/
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top