auc

hybrid_learning.experimentation.exp_eval_common.auc(x, y, add_boundaries=True, skip_na=True)[source]

Calculate the area under curve for the given x and y values.

Parameters
  • add_boundaries (bool) – whether to add points (0,0) and (0,1) (for ROC curve AUC calculation)

  • skip_na (bool) – whether to simply prune NaN values; if False, NaN is returned if any provided value is NaN; if True, NaN is returned only in case no area can be calculated.

  • x (Sequence[float]) –

  • y (Sequence[float]) –

Returns

the AUC value

Return type

float