For the complete documentation index, see llms.txt. This page is also available as Markdown.

Regression Metrics

MSE (Mean Squared Error)

Measures the average squared difference between predicted and actual values, penalizing larger errors:

MSE=1N∑i=1N(yi−y^i)2MSE = \frac{1}{N} \sum_{i=1}^N (y_i - \hat{y}_i)^2

MAE (Mean Absolute Error)

Measures the average absolute difference between predicted and actual values, reflecting the magnitude of errors:

MAE=1N∑i=1N∣yi−y^i∣MAE = \frac{1}{N} \sum_{i=1}^N |y_i - \hat{y}_i|

RMSE (Root Mean Squared Error)

Represents the square root of MSE, interpretable in the same units as the target variable, highlighting larger errors:

RMSE=MSE=1N∑i=1N(yi−y^i)2RMSE = \sqrt{MSE} = \sqrt{\frac{1}{N} \sum_{i=1}^N (y_i - \hat{y}_i)^2}

Example

Below is an example of the regression metrics API usage:

Expand to see an example of the regression metrics API response

Last updated

Was this helpful?