saealib.R2Score#

class saealib.R2Score[ソース]#

ベースクラス: SurrogateAccuracyMetric

Coefficient of determination (R²).

Range: (-∞, 1]. Higher is better. 1.0 = perfect fit.

Methods

__init__

compute

Compute R² between true and predicted values.

Method Details

R2Score.__init__()#
R2Score.compute(y_true, y_pred)[ソース]#

Compute R² between true and predicted values.

パラメータ:
  • y_true (ndarray)

  • y_pred (ndarray)

戻り値の型:

float