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

Support for custom Java-backed models (eg. factorization machine) #122

Open
lcx517 opened this issue Mar 3, 2022 · 1 comment
Open

Support for custom Java-backed models (eg. factorization machine) #122

lcx517 opened this issue Mar 3, 2022 · 1 comment

Comments

@lcx517
Copy link

lcx517 commented Mar 3, 2022

Hi,
Spark ML support FM Model in 3.x.
Is there any plan to support factorization machine in Spark 3.x?

@vruusmann
Copy link
Member

The PMML specification does not define a specialized model element for representing factorization machines.

AFAIK, the business logic of factorization machines cannot be effectively represented using the available PMML building blocks (eg. a chain of regression tables).

Possible workarounds:

  1. Independently design and implement a PMML-like representation for factorization models into the JPMML software project (both converter and evaluator sides).

  2. Implement as a custom Java-backed model. Simply create a subclass of org.jpmml.evaluator.java.JavaModel, and implement a factorization machine business logic in its evaluate<MiningFunction>(ValueFactory, EvaluationContext) method. For example, could simply invoke Apache Spark API methods in there.

@vruusmann vruusmann changed the title Any project to support factorization machine in Spark 3.x? Support for custom Java-backed models (eg. factorization machine) Mar 4, 2022
@lcx517 lcx517 closed this as completed Mar 11, 2022
@vruusmann vruusmann reopened this Mar 11, 2022
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