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

Method predict_proba

modAL/models/learners.py:556–565  ·  view source on GitHub ↗

Consensus probabilities of the Committee. Args: X: The samples for which the class probabilities are to be predicted. **predict_proba_kwargs: Keyword arguments to be passed to the :meth:`predict_proba` of the Committee. Returns: Class prob

(self, X: modALinput, **predict_proba_kwargs)

Source from the content-addressed store, hash-verified

554 return self.classes_[max_proba_idx]
555
556 def predict_proba(self, X: modALinput, **predict_proba_kwargs) -> Any:
557 """
558 Consensus probabilities of the Committee.
559 Args:
560 X: The samples for which the class probabilities are to be predicted.
561 **predict_proba_kwargs: Keyword arguments to be passed to the :meth:`predict_proba` of the Committee.
562 Returns:
563 Class probabilities for X.
564 """
565 return np.mean(self.vote_proba(X, **predict_proba_kwargs), axis=1)
566
567 def score(self, X: modALinput, y: modALinput, sample_weight: List[float] = None) -> Any:
568 """

Callers 3

test_predict_probaMethod · 0.95
predictMethod · 0.95
vote_probaMethod · 0.45

Calls 1

vote_probaMethod · 0.95

Tested by 1

test_predict_probaMethod · 0.76