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

[ASK] Issue ingesting libffm format for xDeepFM #131

Open
sijdev opened this issue Mar 22, 2023 · 1 comment
Open

[ASK] Issue ingesting libffm format for xDeepFM #131

sijdev opened this issue Mar 22, 2023 · 1 comment

Comments

@sijdev
Copy link

sijdev commented Mar 22, 2023

I'm currently attempting to train xDeepFM using the libffm format.
I noticed in the code that load_svmlight_file from sklearn is used to load the text file.
While load_svmlight_file works well for to load data in the libsvm format -

label feature1:value1 feature2:value2

With the libffm format

label field1:feature1:value1 field2:feature2:value2

I get the error

ValueError: could not convert string to float: b'0:0.11545'

Since load_svmlight_file ultimately converts to a sparse matrix, I can also convert my data directly to a sparse matrix. However, while it is obvious what the libsvm format would look like in matrix format, it isn't obvious what the libffm format would look like.

Has anyone successfully trained a xDeepFM using this repo? Please help!

@wangcaihua
Copy link

wangcaihua commented Mar 22, 2023 via email

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

2 participants