Regression
Relative squared error
Implemented
regression.rseDefinition
Total squared error relative to that of always predicting the mean (equals 1 − R²).
Formula
Σ(ŷᵢ − yᵢ)² / Σ(yᵢ − ȳ)²
Range: [0, ∞)
Inputs and outputs
- y_true: array of real targets
- y_pred: array of real predictions
- sample_weight: optional
Returns: MetricResult
Assumptions
No assumptions beyond valid, aligned inputs of the documented types.
Limitations
No metric-specific limitations are documented yet. Interpret the value alongside the task, data, and other metrics.
Python API
import evalsuite as es
es.rse(yr, pr)References
- Witten IH, Frank E, Hall MA. Data Mining. 3rd ed. Morgan Kaufmann; 2011.