Set it up
Claude looks for a column with repeated values, such ascustomer_id, and reports what it finds (“3 rows per customer on average”). At the Rows question, choose Several rows per customer_id.
Claude writes a copy of your CSV with a fold column that puts all rows of one entity in the same fold. It uses scikit-learn’s StratifiedGroupKFold with 8 folds for classification and GroupKFold with 8 folds for regression. Each entity is then scored by a model that never saw it.
To build the copy yourself:
Drop or keep the entity column
The entity column is usually an ID. Drop it unless the same entities appear when you predict and their ID carries meaning. Claude asks.What to expect
- All 8 folds, or the first fold only. One fold is faster and uses fewer TabPFN tokens, but scores are noisier.
- No repeats. Your folds are the same every time.
- Lower scores than shuffled folds. This is expected. Grouped folds measure how the model does on entities it has not seen.