jfloff / pywFM

pywFM is a Python wrapper for Steffen Rendle's factorization machines library libFM
https://pypi.python.org/pypi/pywFM
MIT License
250 stars 43 forks source link

an Error in Pandas #22

Closed naaktslaktauge closed 7 years ago

naaktslaktauge commented 7 years ago

Hi. I tried your sample code, then an error occurred in "model = fm.run(features[:5], target[:5] , features[5:], target[5:])". Then, it says "EmptyDataError: No columns to parse from file".

Could you tell me how to solve this problem??

naaktslaktauge commented 7 years ago

My Python's version is 3.6.1.

jfloff commented 7 years ago

Which OS are you using?

ryancheunggit commented 7 years ago

I got a similar error message on MacOS, in my case, it seems to have something to do with rlog I set rlog = False and it works.

naaktslaktauge commented 7 years ago

I used export LIBFM_PATH=/home/libfm/bin/ instead of export LIBFM_PATH=/home/libfm/bin, then, it worked! It was my easy mistake, I'm sorry.

jfloff commented 7 years ago

@naaktslaktauge Fixed that! Thank you! 👍

@ryancheunggit could you give more information about that error? Were you using the default example or your own dataset?

ryancheunggit commented 7 years ago

Sorry, I couldn't reproduce the error anymore. It all works well now.

jfloff commented 7 years ago

Ok :) Feel free to reopen if you notice that again. Cheers!