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

Method predict

modAL/models/base.py:129–140  ·  view source on GitHub ↗

Estimator predictions for X. Interface with the predict method of the estimator. Args: X: The samples to be predicted. **predict_kwargs: Keyword arguments to be passed to the predict method of the estimator. Returns: Estimator prediction

(self, X: modALinput, **predict_kwargs)

Source from the content-addressed store, hash-verified

127 pass
128
129 def predict(self, X: modALinput, **predict_kwargs) -> Any:
130 """
131 Estimator predictions for X. Interface with the predict method of the estimator.
132
133 Args:
134 X: The samples to be predicted.
135 **predict_kwargs: Keyword arguments to be passed to the predict method of the estimator.
136
137 Returns:
138 Estimator predictions for X.
139 """
140 return self.estimator.predict(X, **predict_kwargs)
141
142 def predict_proba(self, X: modALinput, **predict_proba_kwargs) -> Any:
143 """

Callers 7

_SVM_lossFunction · 0.45
max_scoreFunction · 0.45
avg_scoreFunction · 0.45
max_std_samplingFunction · 0.45
optimizer_PIFunction · 0.45
optimizer_EIFunction · 0.45
optimizer_UCBFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected