Repository navigation
Conversation
|
|
Author
|
Hi @lc525 , could you please take a look at this PR or point me to the right maintainer for the CatBoost runtime? It adds an opt-in probability output while preserving the current default. Thanks! |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The CatBoost runtime currently returns class labels only, so clients cannot apply their own probability thresholds. Add
predict_probaoutput selection while keepingpredictas the default.Clients can request
predict,predict_proba, or both;PREDICT_PROBA=truesets the process-wide default. Probability outputs preserve class order and have shape[batch, classes], including for a single 1-D input.Evidence
CatBoostClassifier.predict()and returned class labels.runtimes/catboost/testspasses (10 tests), covering the existing default, environment flag, request output selection, precedence and invalid output.Merge Danger
Door: Two-way; the default output remains
predictwhen no option is set.Blast Radius: CatBoost runtime. Explicit unsupported output names now return an inference error.
PREDICT_PROBAis process-wide; the per-model setting or explicit request can override it.