Source

R Squared#

The coefficient of determination or R Squared (R²) is the proportion of the variance in the target labels that is explainable from the predictions. In other words, it gives an indication as to how well the predictions approximate the labels.

Estimator Compatibility: Regressor

Output Range: -∞ to 1

Example#

use Rubix\ML\CrossValidation\Metrics\RSquared;

$metric = new RSquared();