Pearson¶
- class Pearson[source]¶
Bases:
PlibEvaluatorMixinPearson correlation coefficient.
Measures the linear relationship predictions and ground truth. Strictly speaking, Pearson’s correlation assumes that outputs be normally distributed.
- 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