Document SCRIB's empty-prediction-set scoring - #1218
Open
lehendo wants to merge 1 commit into
Open
Conversation
…aper
Re-verified the existing favscrib branch's SCRIB fixes (ambiguity-loss
un-squaring, fill_max search/inference consistency) directly against
Lin, Glass, Westover, Xiao, and Sun, "SCRIB: Set-classifier with
Class-specific Risk Bounds for Blackbox Models" (AAAI 2022,
arXiv:2103.03945) -- both confirmed correct, no new bug found there.
Found one worth documenting rather than fixing: the paper's
Chance-Ambiguity (P{|H(X)|>1}) and per-class risk
(P{k not in H(X) | |H(X)|=1}) are defined only relative to singleton and
multi-label sets; the paper never specifies how an empty set (|H(X)|=0)
should be scored. This implementation treats empty sets the same as
multi-label sets ("not sure"), consistently in both the optimized loss
and the rejection_rate/error_ps metrics used to evaluate it -- and this
is the safer choice: under the paper's literal formula, an always-empty
classifier would show zero ambiguity loss and zero risk loss, appearing
loss-free while being useless.
Also added the exchangeability/no-distribution-shift caveat that applies
to LABEL and SCRIB (as opposed to CovariateLabel) to the CXR conformal
prediction example.
Deliberately scoped to avoid touching the same lines already fixed on
favscrib, so the two branches merge independently.
Contributor
|
looks good. |
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.
Adds better documentation for SCRIB