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)
| 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: |
nothing calls this directly
no outgoing calls
no test coverage detected