Status Update
Comments
vi...@google.com <vi...@google.com> #2
Hi Team,
@gcp-public-issues@google.com Can you please assign this case and provide an update on this feature request? Wells Fargo has been asking for it.
Thanks, Vivian
va...@google.com <va...@google.com>
va...@google.com <va...@google.com> #3
Hello,
Thanks for the feature request!
This has been forwarded to the Vertex AI Engineering Team so that they may evaluate it. Note that there are no ETAs or guarantees of implementation for feature requests. All communication regarding this feature request is to be done here.
we...@google.com <we...@google.com> #4
I would like to be able to output predicted class probabilities, in addition to predicted classes.
For batch prediction, our customer can still achieve that by using a custom container and call .predict() on a model directly, using custom code.
All they need is to override their predict handler through custom code to always return classification with probabilities. Batch Prediction response contract does not forbid our customer doing so.
Description
This feature request has been forwarded to the Vertex AI Batch predictions product management team so that they may evaluate it. There is no timeline or implementation guarantee for feature requests. All communication regarding this feature request is to be done here.
What you would like to accomplish
When using Batch predictions, I would like to be able to output predicted class probabilities, in addition to predicted classes.
How this might work
When configuring batch predictions, add a flag that would output class probabilities.
Context
A workaround for this in Online Predictions is to use a custom container and call
.predict_proba()
on a model directly, using custom code.However, this doesn't work for Batch predictions, for which predictions are not calling the custom container via Vertex AI Endpoint, and it is calling the model directly (1.).
The code snippet in (2.) demonstrates that the batch prediction call happens to the model object
aiplatform.Model
via.batch_predict()
method.The API reference for
aiplatform.Model
(3.) lists all methods supported by this class, and it only supports.batch_predict()
method which outputs classes and not probabilities.References