saealib.SpearmanCorrelation#

class saealib.SpearmanCorrelation[ソース]#

ベースクラス: SurrogateAccuracyMetric

Spearman rank correlation averaged over objectives.

Measures whether the surrogate preserves the ranking of candidates, which is the primary criterion in EA contexts (Yu et al., 2019). Range: [-1, 1]. Higher is better.

Methods

__init__

compute

Compute Spearman rank correlation, averaged over objectives.

Method Details

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

Compute Spearman rank correlation, averaged over objectives.

パラメータ:
  • y_true (ndarray)

  • y_pred (ndarray)

戻り値の型:

float