MCPcopy Create free account
hub / github.com/modAL-python/modAL / predict_proba

Method predict_proba

modAL/models/base.py:142–153  ·  view source on GitHub ↗

Class probabilities if the predictor is a classifier. Interface with the predict_proba method of the classifier. Args: X: The samples for which the class probabilities are to be predicted. **predict_proba_kwargs: Keyword arguments to be passed to the predict

(self, X: modALinput, **predict_proba_kwargs)

Source from the content-addressed store, hash-verified

140 return self.estimator.predict(X, **predict_kwargs)
141
142 def predict_proba(self, X: modALinput, **predict_proba_kwargs) -> Any:
143 """
144 Class probabilities if the predictor is a classifier. Interface with the predict_proba method of the classifier.
145
146 Args:
147 X: The samples for which the class probabilities are to be predicted.
148 **predict_proba_kwargs: Keyword arguments to be passed to the predict_proba method of the classifier.
149
150 Returns:
151 Class probabilities for X.
152 """
153 return self.estimator.predict_proba(X, **predict_proba_kwargs)
154
155 def query(self, X_pool, *query_args, return_metrics: bool = False, **query_kwargs) -> Union[Tuple, modALinput]:
156 """

Callers 10

max_lossFunction · 0.45
min_confidenceFunction · 0.45
avg_confidenceFunction · 0.45
max_scoreFunction · 0.45
avg_scoreFunction · 0.45
consensus_entropyFunction · 0.45
classifier_uncertaintyFunction · 0.45
classifier_marginFunction · 0.45
classifier_entropyFunction · 0.45
expected_error_reductionFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected