You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
Add interpretability.get_decoder_readout, which extracts TabPFN's classification-head (ManyClassDecoder) attention weights over the training rows for each test row (weights sum to 1), exposing the prediction as a label-vote over training points. A companion class_vote collapses the weights by training label to reproduce predict_proba, and examples/interpretability/decoder_readout_example.py visualizes the readout on a 2D projection of the model's embeddings. (#363)
interpretability.get_decoder_readout now reads the per-training-row attention weights from the classification head's own ManyClassDecoder.attention_weights (added in tabpfn 8.3.0) instead of re-deriving them by replaying the head's query/key projection, softmax scaling and scaled-dot-product softmax. The returned weights are unchanged, and the readout no longer has to track upstream changes to the head's attention math. (#376)