tabpfn-client), so its timings include the network round-trip to Prior Labs’ servers rather than pure local compute. To keep things fair on accuracy, XGBoost gets two chances: a sensible hand-picked configuration and a properly cross-validated one. Every result is collected into a single table at the end.
Setup
Installing the TabPFN client and XGBoost.Imports and Data
Loading the dataset from OpenML and creating a stratified train/test split. We fetch the German Credit dataset directly from OpenML and split it with stratification so the class balance is preserved in both halves. A singleresults list accumulates each model’s score and timing for the final comparison.
Authentication
SettingTABPFN_TOKEN so the client can reach the API.
The client reads the API key from the TABPFN_TOKEN environment variable, we use the set_access_token helper. Here we pull it from Colab secrets.
TabPFN, Default Settings
No configuration, no tuning, just fit and predict. We fitTabPFNClassifier from the hosted client with its defaults and time both the fit and the prediction. Because the model runs on Prior Labs’ servers, these timings include the round-trip to upload the data and return predictions. The ROC AUC and timings go straight into the results table.