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

TabPFNClassifier.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.

TabPFNClassifier.predict

View source
Predict the class labels for the provided input samples.
Parameters
Returns

TabPFNClassifier.predict_proba

View source
Predict the probabilities of the classes for the provided input samples.
Parameters
Returns

TabPFNClassifier.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

TabPFNClassifier.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 mean classification accuracy.