Skip to content
This repository has been archived by the owner on Apr 15, 2022. It is now read-only.

Alternating Least Squares (ALS) Model not supported (deploy_db) #77

Open
ZachC16 opened this issue Aug 17, 2020 · 0 comments
Open

Alternating Least Squares (ALS) Model not supported (deploy_db) #77

ZachC16 opened this issue Aug 17, 2020 · 0 comments

Comments

@ZachC16
Copy link

ZachC16 commented Aug 17, 2020

ALS models (https://spark.apache.org/docs/latest/ml-collaborative-filtering.html) do not appear to be supported. There is an error when attempting to use deploy_db to deploy this type of model to a database.

To replicate: train an ALS Model, log it to mlflow, and then attempt to deploy it to a database with deploy_db.

Stack trace:

Py4JJavaError: An error occurred while calling o184.transform. : java.lang.NullPointerException at org.apache.spark.ml.recommendation.ALSModel.transform(ALS.scala:311) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:244) at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:357) at py4j.Gateway.invoke(Gateway.java:282) at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132) at py4j.commands.CallCommand.execute(CallCommand.java:79) at py4j.GatewayConnection.run(GatewayConnection.java:238) at java.lang.Thread.run(Thread.java:745)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant