Add lookup tables
Give Claude all the files and say which one holds the target:--table, once per table:
= is how the agent refers to the table. It must be a Python identifier, and not train, a keyword, a built-in name or a name the agent’s script uses, such as pd or evaluate.
What Autofit does with them
- The baseline uses the main table alone. Every gain from the lookup tables shows as an experiment.
- The agent builds features such as counts, sums and the latest value per key. They run inside each fold, so they are fitted on the training rows of that fold only.
- Folds come from the main table. Each fold reads the whole of every lookup table.
- The key column stays. The agent needs it to join. Claude tells the agent it is a key, not a feature.
Keep future rows out
A lookup table has rows of its own over time. Rows recorded after the prediction leak the answer: orders after the churn date, visits after the diagnosis. When a lookup table has dates, Claude compares them with when the prediction is made. If rows fall after it, Claude offers a copy that keeps only the earlier rows (orders_known.csv). Leave out a table that records the outcome itself, such as a returns table when the target is a return.
To drop a column from a lookup table, use a copy of the table without it. --drop reaches the main table only.
Predict with lookup tables
autofit predict and autofit score use the tables from the session by default. To predict with newer data, pass newer versions of every table under the same names:
Lookup tables stay on your machine. TabPFN receives the rows of the main table with the columns the agent built from the lookup tables.