pywFM icon indicating copy to clipboard operation
pywFM copied to clipboard

Running error with __init__.py

Open helenxu opened this issue 7 years ago • 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)

helenxu avatar Mar 13 '18 15:03 helenxu

Can you make sure you are using the latest version of pywFM?

jfloff avatar Mar 14 '18 17:03 jfloff

Thank you for your response. I just pip installed pywFM. I think it should be the latest version?

helenxu avatar Mar 15 '18 07:03 helenxu

You still have the same error? Could you check your LIBFM_PATH if its correct?

jfloff avatar Mar 15 '18 11:03 jfloff

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.

helenxu avatar Mar 20 '18 12:03 helenxu

Did you find any solution to this? I'm having the same problem

opardo avatar Dec 14 '18 00:12 opardo

Hi, Same issue here as well. Did someone find a solution ?

thosgt avatar Jul 31 '19 10:07 thosgt

Hi,guys,have you ever found the solution?I'm still also having the same problem!!!

zmy-9 avatar Feb 06 '20 05:02 zmy-9

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 😅

VProgramMist avatar Apr 17 '21 17:04 VProgramMist