Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running error with __init__.py #27

Open
helenxu opened this issue Mar 13, 2018 · 8 comments
Open

Running error with __init__.py #27

helenxu opened this issue Mar 13, 2018 · 8 comments

Comments

@helenxu
Copy link

helenxu commented Mar 13, 2018

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)

@jfloff
Copy link
Owner

jfloff commented Mar 14, 2018

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

@helenxu
Copy link
Author

helenxu commented Mar 15, 2018

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

@jfloff
Copy link
Owner

jfloff commented Mar 15, 2018

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

@helenxu
Copy link
Author

helenxu commented Mar 20, 2018

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.

@opardo
Copy link

opardo commented Dec 14, 2018

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

@thosgt
Copy link

thosgt commented Jul 31, 2019

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

@zmy-9
Copy link

zmy-9 commented Feb 6, 2020

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

@VProgramMist
Copy link

VProgramMist commented Apr 17, 2021

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 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants