-
Notifications
You must be signed in to change notification settings - Fork 19.5k
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
Factorization Machines Layer #4959
Comments
Sounds like a solution: https://github.com/mzaradzki/factorization-machine-for-prediction/blob/master/keras.ipynb |
Yes yes, I discovered embedding layers afterward, they are very powerful and provide a kind of generalization of FM. But you cannot do "0, 0, 0, 0, 0, 0, 0, 0, 0.34, 0, 0, 0, 0, ... , 0, 0, 0.798, 0, 0, 0, 0, -1.72, 0, 0" as input PS: for those who might be interested https://github.com/lystdo/Codes-for-WSDM-CUP-Music-Rec-1st-place-solution. I tried myself and the MLP version works indeed better than the RNN one (or even attention). |
Hi, self.ip1 = Input(shape=(input_shape,))
I am getting this error- Could you help me out. My input dimension is 2- the first one is batch size, the next one is the vector size. I tried by reshaping the dimension to 3. But the error is still there with "found ndim=3". I am sorry if it is not a correct place to post this. |
Hi, I had sometimes that problem but Im sorry I don’t know why it appears. |
Hello, |
I think its more likely that I made a mistake in the coding rather than in the maths, due to my skills.. |
Hello,
I don't know if it is the right way to ask for it and if it already exists but last year I had the idea to put Factorization Machines layers into neural networks (aka Neuralization Machines). I did it very easily on Keras.
So I thought it can be cool to add this functionality into next Keras versions.
Unfortunately I don't have time to learn how to do a pull request and how to respect Keras' code syntax (and I am sorry for that), but please find attached my working 2-way Factorization Machines layer.
custom.py.zip
I think it can be also very interesting
I just hope that my post can help to build a kind of ultimate recommender system.
The text was updated successfully, but these errors were encountered: