saealib.SurrogateAccuracy#

class saealib.SurrogateAccuracy(metrics=<factory>, n_samples=0)[ソース]#

ベースクラス: object

Container for surrogate accuracy metrics computed after a fit.

パラメータ:
  • metrics (dict[str, float])

  • n_samples (int)

metrics#

Mapping from metric name (e.g. "spearman") to scalar value.

Type:

dict[str, float]

n_samples#

Number of training samples used for evaluation.

Type:

int

Methods

__init__

get

Return metric value by name, or default if not present.

Method Details

SurrogateAccuracy.__init__(metrics=<factory>, n_samples=0)#
パラメータ:
  • metrics (dict[str, float])

  • n_samples (int)

戻り値の型:

None

SurrogateAccuracy.get(name, default=nan)[ソース]#

Return metric value by name, or default if not present.

パラメータ:
  • name (str)

  • default (float)

戻り値の型:

float