baidu / fast_rgf

Multi-core implementation of Regularized Greedy Forest
MIT License
465 stars 111 forks source link

Segmentation fault when run examples #6

Closed adrianhust closed 8 years ago

adrianhust commented 8 years ago

In ex1&2,run run.sh, I got these:

using up to 12 threads

loading training data ...

trn.target=BINARY

trn.x-file_format=y.sparse

trn.x-file=inputs/madelon.train

trn.y-file=

trn.w-file=

run.sh: line 19: 9835 Segmentation fault ${exe_train} trn.x-file=${trn} trn.x-file_format=${orig_format} trn.target=BINARY tst.x-file=${tst} tst.x-file_format=${orig_format} tst.target=BINARY model.save=${model_rgf} dtree.new_tree_gain_ratio=1.0 dtree.lamL2=5000 forest.ntrees=1000 dtree.loss=LOGISTIC forest.save_frequency=${save_freq}

It maybe caused by wrong compiling or just code itself? How to solve it?

adrianhust commented 8 years ago

uncomment this set(CMAKE_CXX_FLAGS "-O3 -std=c++11 -pthread") to compile, will solve it~