Skip to content

Prediction Probability from mleap model deployed on sagemaker #13

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

Open
janvekarnaveed opened this issue Jun 5, 2020 · 2 comments
Open

Comments

@janvekarnaveed
Copy link

After deploying mleap model artifact on sagemaker endpoint, during the inferencing stage, how can I get probabilities of prediction rather than binary outcome? I tried changing output column from prediction to probability, but I get the following error:
sagemaker: ml.combust.mleap.tensor.DenseTensor cannot be cast to java.lang.Double

Any suggestions?

@orchidmajumder
Copy link
Contributor

As far I can tell, you need to change your SparkML Pipeline to return probabilities rather than the outcome and then it can be successfully cast into the DenseTensor object.

@janvekarnaveed
Copy link
Author

Thanks for the comments, Orchid! I am trying to find documentation around pipeline models returning proababilities, unable to find any good source. Would you happen to have any examples of any spark classification model deployed on sagemaker that returns probabilities?

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