skeval.base¶
- class skeval.base.BaseEvaluator(model: ~typing.Any, scorer: ~typing.Callable[[...], ~typing.Any] | ~typing.Mapping[str, ~typing.Callable[[...], ~typing.Any]] = <function accuracy_score>, verbose: bool = False)[source]¶
Bases:
objectBase abstract class for all evaluators in scikit-autoeval.
All evaluators should inherit from this class and implement the estimate method.
- estimate(x_eval: Any) Dict[str, Any][source]¶
Abstract method to estimate the model’s performance on the given data.
- Parameters:
x_eval (array-like of shape (n_samples, n_features)) – Test data.
- Returns:
scores – A dictionary containing the evaluation scores.
- Return type:
dict
- fit(x: Any, y: Any) BaseEvaluator[source]¶
Fit the evaluator to the training data.
- Parameters:
x (array-like of shape (n_samples, n_features)) – Training data.
y (array-like of shape (n_samples,)) – Target labels.
- Returns:
self – Returns the instance itself.
- Return type:
object