MCPcopy
hub / github.com/PriorLabs/TabPFN / predict_proba

Method predict_proba

src/tabpfn/classifier.py:1247–1259  ·  view source on GitHub ↗

Predict the probabilities of the classes for the provided input samples. This is a wrapper around the `_predict_proba` method. Args: X: The input data for prediction. Returns: The predicted probabilities of the classes as a NumPy array.

(self, X: XType)

Source from the content-addressed store, hash-verified

1245
1246 @track_model_call(model_method="predict", param_names=["X"])
1247 def predict_proba(self, X: XType) -> np.ndarray:
1248 """Predict the probabilities of the classes for the provided input samples.
1249
1250 This is a wrapper around the `_predict_proba` method.
1251
1252 Args:
1253 X: The input data for prediction.
1254
1255 Returns:
1256 The predicted probabilities of the classes as a NumPy array.
1257 Shape (n_samples, n_classes).
1258 """
1259 return self._predict_proba(X)
1260
1261 @config_context(transform_output="default") # type: ignore
1262 def _predict_proba(self, X: XType) -> np.ndarray:

Calls 1

_predict_probaMethod · 0.95