Running error with __init__.py
helenxu opened this issue · 8 comments
Hi,
I am trying the example code but got some error message w.r.t the init.py (see below). Is there anything I can do to avoid the error? Thanks!
EmptyDataError Traceback (most recent call last)
in ()
20 # split features and target for train/test
21 # first 5 are train, last 2 are test
---> 22 model = fm.run(features[:5], target[:5], features[5:], target[5:])
23 print(model.predictions)
24 # you can also get the model weights
F:\Anaconda\lib\site-packages\pywFM_init_.py in run(self, x_train, y_train, x_test, y_test, x_validation_set, y_validation_set)
228 # parses rlog into
229 import pandas as pd
--> 230 rlog = pd.read_csv(rlog_path, sep='\t')
231 os.close(rlog_fd)
232 os.remove(rlog_path)
Can you make sure you are using the latest version of pywFM?
Thank you for your response. I just pip installed pywFM. I think it should be the latest version?
You still have the same error? Could you check your LIBFM_PATH
if its correct?
Yes, I still have the error. LIBFM_PATH was set correctly and I don't think the error message is related to LIBFM_PATH. I think the error comes from the run() function in init.py, which has "rlog" related operation.
Did you find any solution to this? I'm having the same problem
Hi,
Same issue here as well. Did someone find a solution ?
Hi,guys,have you ever found the solution?I'm still also having the same problem!!!
Hey, guys! I found one of the solutions that helped me (using the Windows version)...
Change your LIBFM_PATH variable value from C:\home\libfm-1.40.windows
to C:\home\libfm-1.40.windows\
...
The value of the variable needs a backslash at the end 😅