-
Notifications
You must be signed in to change notification settings - Fork 606
Support multiple types of responses in predict() #915
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 multiple types of responses in predict() #915
Conversation
i.e. cortex.lib.exceptions.UserRuntimeException: error: consider passing a bytes object or a custom starlette.response object instead: Object of type 'DataFrame' is not JSON serializable: runtime exception
What has to be kept in mind in the back of the mind is that with this method, other protocols for pickle can be used too: 1, 2, 3, and 4 (with the exclusion of 5). 5 cannot be used because the serving container is still based on Python 3.6.x). Anyhow, the speedup over protocol 0 (in my experiments) is this:
So assuming protocol 4, which is 3 times as fast as protocol 0, and no |
Closes #913.
checklist:
make test
andmake lint
summary.md
(view in gitbook after merging)