nimble.calculate.rSquared

nimble.calculate.rSquared(knownValues, predictedValues)

Calculate the r-squared (or coefficient of determination) of the predictedValues given the knownValues. This will be equal to 1 - nimble.calculate.varianceFractionRemaining() of the same inputs.