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

Method score

modAL/models/base.py:191–203  ·  view source on GitHub ↗

Interface for the score method of the predictor. Args: X: The samples for which prediction accuracy is to be calculated. y: Ground truth labels for X. **score_kwargs: Keyword arguments to be passed to the .score() method of the predictor.

(self, X: modALinput, y: modALinput, **score_kwargs)

Source from the content-addressed store, hash-verified

189 return query_result, retrieve_rows(X_pool, query_result)
190
191 def score(self, X: modALinput, y: modALinput, **score_kwargs) -> Any:
192 """
193 Interface for the score method of the predictor.
194
195 Args:
196 X: The samples for which prediction accuracy is to be calculated.
197 y: Ground truth labels for X.
198 **score_kwargs: Keyword arguments to be passed to the .score() method of the predictor.
199
200 Returns:
201 The score of the predictor.
202 """
203 return self.estimator.score(X, y, **score_kwargs)
204
205 @abc.abstractmethod
206 def teach(self, *args, **kwargs) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected