-
Notifications
You must be signed in to change notification settings - Fork 312
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
how to convert spark dataframe to mleap tensor[double] straightly #819
Comments
Use org.apache.spark.sql.mleap.TypeConverters
from spark dataframe can not get tensor[Double] |
As a caveat, converting from spark to mleap is kind of an unusual thing which we don't usually need to do. If you have a spark session and dataframe, then just do things with spark. mleap runtime is more for when you don't have a spark session (e.g., in a real time inference service). That said, the Looking at |
Ok ,thank ,Now use our package ,I make from spark dataframe normally generate tensorflow-java tensor & NdArray ! |
Hi : I know how to convert mleap tensor to tensorflow tensor use our package, but I don't know how to make spark dataframe convert to mleap tensor[Double], I have found the method [TypeConverters.sparkToMleapValue()] ,but I don't know how to use,could you support me give a tutorial for this,thanks
The text was updated successfully, but these errors were encountered: