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

[SPARK-7008] An implement of Factorization Machines based on Scala and Spark MLlib. #5591

Closed
wants to merge 4 commits into from

Conversation

zhengruifeng
Copy link
Contributor

An implementation of Factorization Machines based on Scala and Spark MLlib.
Factorization Machine is a kind of state-of-the-art machine learning algorithm for multi-linear regression, and is widely used in recommendation systems.
Factorization Machines algorithm and its C++ implement LibFM works well in recent years' recommendation competitions.

A FMModel consist of three parts:
an Intercept (optional),
an one-way interactions weights like other linear models (optional),
a numFactors * numFeatures matrix representing the factors of each feature (mandatory).

I implement the training algorithm with SGD provided by MLlib's GradientDescent (to use MLlib's SGD, the model is encoded to a dense vector during training).

Ref:
http://libfm.org/
http://doi.acm.org/10.1145/2168752.2168771
http://www.inf.uni-konstanz.de/~rendle/pdf/Rendle2010FM.pdf

/**
* Created by zrf on 4/13/15.
*/

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here should be deleted.

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@mengxr
Copy link
Contributor

mengxr commented Apr 30, 2015

@zhengruifeng Thanks for submitting your impl as a Spark package at http://spark-packages.org/package/zhengruifeng/spark-libFM! As we discussed on the JIRA, we need some time to evaluate FM and discuss a scalable solution. So do you mind closing this PR for now?

@zhengruifeng
Copy link
Contributor Author

OK, please close it.

On May 1, 2015, at 5:35 AM, Xiangrui Meng [email protected] wrote:

@zhengruifeng https://github.com/zhengruifeng Thanks for submitting your impl as a Spark package at http://spark-packages.org/package/zhengruifeng/spark-libFM http://spark-packages.org/package/zhengruifeng/spark-libFM! As we discussed on the JIRA, we need some time to evaluate FM and discuss a scalable solution. So do you mind closing this PR for now?


Reply to this email directly or view it on GitHub #5591 (comment).

@asfgit asfgit closed this in 9d250e6 May 5, 2015
@withDataman
Copy link

hello, why don't load FM model?

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

Successfully merging this pull request may close these issues.

5 participants