saealib.SurrogateAccuracyMetric#

class saealib.SurrogateAccuracyMetric[ソース]#

ベースクラス: ABC

Abstract base for a scalar accuracy metric.

Methods

__init__

compute

Compute the metric.

Method Details

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

Compute the metric.

パラメータ:
  • y_true (np.ndarray) -- True objective values. shape: (n_samples, n_obj)

  • y_pred (np.ndarray) -- Predicted objective values. Same shape as y_true.

戻り値:

Scalar metric value. Interpretation (higher/lower = better) depends on the concrete metric.

戻り値の型:

float