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
scikit-learn support for predict method not only predict_proba #145
Comments
Its true the present python wrapper is assuming this. seldon-core/wrappers/python/model_microservice.py Lines 54 to 55 in befa040
It is using this to get the class names. But we could make this only used if the predictions were 2 dimensional. The core data payload sent back doesn't place any requirements on the shape of the data. |
@smolina74 - I had the same problem, and found a workaround with |
Please reopen if still an issue with latest Python wrapper. |
* update output inputs name to steps, check for cycles, add batch, add left join to APIs * add outer joins * error topic handling * lint * Add state listeners to ensure ready is until rebalancing done * add more logging for rebalancing
I was trying my own scikit-learn Iris model. In that one I'm using the Seldon wrapper (not s2i, since I'm getting the error described here kubeflow/example-seldon#13). Now, one thing I noticed there is that the module in charge of calling my model class is model_microservice.py. And for what I'm seeing, after calling the prediction method it is expecting that the result is a 2 dimensional array (prediction.shape[1] will fail if not), which is ok when you call a predict_proba, but not when you just call predict.
So, the question is, what can I do if I just need to call a predict method and not predict_proba?
The text was updated successfully, but these errors were encountered: