PlibEvaluatorMixin¶
- class PlibEvaluatorMixin[source]¶
Bases:
objectMixin for all the Perturb-lib evaluators.
- abstract evaluate(predictions, true_values)[source]¶
Base evaluation function.
- Parameters:
predictions (
ndarray[Any,dtype[TypeVar(_ScalarType_co, bound=generic, covariant=True)]]) – predictions of the model to be evaluatedtrue_values (
PlibData) – true values to evaluate predictions on
- Return type:
float- Returns:
evaluation score