Compare TabPFN-3 with the Random Forest on the same synthetic split - #3
Merged
Conversation
added 4 commits
September 8, 2026 18:31
kpernyer
changed the base branch from
examples/random-forest-baseline
to
main
September 8, 2026 17:19
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.
Compare a pinned pretrained TabPFN-3 classifier with the existing Random Forest and historical base rate on exactly the same fictional commitment snapshots. This builds on the Random Forest example in #2.
The optional CUDA adapter verifies the checkpoint hash, checks matching training/test identities and exclusions, and predicts one test row per call using fixed historical training context. The report adds checkpoint/code provenance, per-row probabilities, library/device versions, timing, and peak PyTorch allocation. Weights and run artefacts stay outside Git. No service is deployed or GPU CI runner configured.
The guide documents the isolated environment, exact checkpoint revision and non-commercial model terms, bounded allocation, and limitations of a single synthetic comparison. No organisational validity or broad model-superiority claim is made.
Validation: 25 local tests pass, including checkpoint tampering, positive-class mapping, valid probabilities, and single-row prediction boundaries. The existing 11-event contract fixture passes. The real pinned checkpoint ran successfully on an NVIDIA GB10 with PyTorch 2.11.0+cu130; all 25 tests also passed there. On the same 153 training / 85 test synthetic rows, TabPFN achieved Brier 0.1500 and log loss 0.4760 versus the forest's 0.1677 and 0.5200. Accuracy at 0.5 was 77.65% versus 78.82%. The guide records the measured result, source commit, dataset hash, environment, and limitations. The existing inference service remained healthy.