xlearn
xlearn copied to clipboard
install success,but run error
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!
I am having the same problem...
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
Thanks @philipskokoh That worked for me; I had the same error.
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.