xlearn icon indicating copy to clipboard operation
xlearn copied to clipboard

install success,but run error

Open fttt opened this issue 5 years ago • 4 comments

I successfully installed xlearn using cmake(3.12) and gcc(6.1.0),but when I run the following statement,: ./xlearn_train ./small_train.txt -s 2 -v ./small_test.txt -x acc,which copy from run_example.sh. an error occurred: terminate called after throwing an instance of 'std::logic_error' what(): basic_string::_M_construct null not valid Aborted (core dumped). I want to know how I can solve this problem, thanks!

fttt avatar Jan 31 '19 03:01 fttt

I am having the same problem...

sroylee avatar Apr 12 '19 10:04 sroylee

set the USER environment variable when running the code. It seems that the code checking USER environment variable. Try: USER='test' ./xlearn_train ./small_train.txt -s 2 -v ./small_test.txt -x acc

philipskokoh avatar Apr 12 '19 11:04 philipskokoh

Thanks @philipskokoh That worked for me; I had the same error.

dward4 avatar Apr 22 '19 18:04 dward4

xlearn c++ code uses multi-threading, so while accessing the hardware it need the user variable in the environment. And because if c compiler version issue the init_log() parameter is empty. So we have to initialize it by ourself. So basically write USER = 'Test' before command.

binayakpokhrel avatar Jan 31 '20 11:01 binayakpokhrel