aksnzhy / xlearn

High performance, easy-to-use, and scalable machine learning (ML) package, including linear model (LR), factorization machines (FM), and field-aware factorization machines (FFM) for Python and CLI interface.
https://xlearn-doc.readthedocs.io/en/latest/index.html
Apache License 2.0
3.09k stars 519 forks source link

terminate error 'std::logic_error' #311

Open yoonkt200 opened 5 years ago

yoonkt200 commented 5 years ago
   _
  | |

| | _ \ \/ / | / \/ ` | '| '_ \

<| |_| / (| | | | | | | //__/_|\,|| || ||

terminate called after throwing an instance of 'std::logic_error' what(): basic_string::_M_construct null not valid Aborted (core dumped)

I was tried to using xlearn in python code by pip (environment: Ubuntu 18, Python3, gcc, clang... was installed). But I got a problem like above. And There are same open issues #215 #194

The main reason is log_file parameter was missed while xlearn runned(by python). And this part is in src/solver/solver.cc. I think this is because of OS version or C compiler version issue. And I found this by c++ debugger. (gdb)

After fix some parameter code on src/solver/solver.cc and build xlearn again, it works well.

Has anyone solved the problem like this? I share this case for xlearn's user