Open
Conversation
Signed-off-by: Joanie Hayoun Chung <[email protected]>
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.
This PR adds
TabpfnEstimator, bringing TabPFN (Prior-Data Fitted Networks) into DoWhy's estimator suite as an outcome model for backdoor adjustment.TabPFN is a tabular foundation model pre-trained on synthetic data — it requires no hyperparameter tuning and works out of the box, making it a practical option for small-to-medium tabular datasets (≤10,000 samples, ≤500 features).
Key Features
TabPFNClassifierorTabPFNRegressorbased on outcome dtype and cardinalityn_estimatorsacross devices.Added Files
dowhy/causal_estimators/tabpfn_estimator.pytests/causal_estimators/test_tabpfn_estimator.pydocs/source/example_notebooks/dowhy_tabpfn_estimator.ipynbModified Files
docs/source/example_notebooks/dowhy_estimation_methods.ipynb— Added Method 9: TabPFN Estimator section
Dependencies
TabpfnEstimatorrequires additional packages not included in DoWhy's default dependencies:Installation instructions and authentication guidance for TabPFN v2.5+ are included in the source file and example notebooks.
References
TabPFN: A Prior-Data Fitted Network for Tabular Data.
ICLR (2023). https://arxiv.org/abs/2207.01848
Hoo, R., Schirrmeister, R. T., and Hutter, F.
Accurate predictions on small data with a tabular foundation model.
Nature (2025). https://doi.org/10.1038/s41586-024-08328-6