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

What is the size of parameters in FFM #1

Open
KennyTC opened this issue Apr 6, 2020 · 0 comments
Open

What is the size of parameters in FFM #1

KennyTC opened this issue Apr 6, 2020 · 0 comments

Comments

@KennyTC
Copy link

KennyTC commented Apr 6, 2020

In FFM, I see the following parameters.

self.embedding_size = params['embedding_size']
self.field_size = params['field_size']
self.feature_size = params['feature_size']

feature_idx = features["feature_idx"]
feature_values = features["feature_values"]      

If I have 17 columns, each column is numeric range from 0 to 99. Now I want to embed each column to k latent vectors (e.g. k = 4)
I guess in my case
self.field_size = 17,
self. embedding_size = 4
self.feature_size = 100

What is features["feature_idx"] and features["feature_values"]? and what is their shapes?

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

1 participant