Skip to main content
Looking for usage documentation? Check out Regression and KV cache.

TabPFNRegressor.fit

View source
Fit the model. Uploads the training data to the server, which fits the model on it.
Parameters
Returns
Raises ValueError If the data or the estimator’s parameters are invalid, or the data exceeds the model limits.

TabPFNRegressor.predict

View source
Predict regression target for X.
Parameters
Returns
Raises ValueError If X exceeds the model limits or the group columns are invalid. RuntimeError If a "full" prediction split across several requests returns fields that cannot be combined.

TabPFNRegressor.get_timings

View source
Seconds the server spent on the last fit and the last prediction. Returns {"fit": ..., "predict": ...}:
  • fit: elapsed_s, queue_wait_s, train_set_transform_s, fit_s.
  • predict: test_set_transform_queue_wait_s, test_set_transform_s, predict_queue_wait_s, predict_s. A prediction sent in several requests reports their sum.
Queue wait is time spent waiting for the server to start the work. An entry is None before the first call, on a model restored with load_model(), and when the server does not report timings.
Returns

TabPFNRegressor.last_predict_timings

View source
Seconds per stage of the most recent prediction, or None. Returns

Scikit-learn scoring

Inherited score(X, y, sample_weight=None) calls predict and returns the coefficient of determination (R²).