synthetic_aia_mia.metrics package

Module contents

Metrics

synthetic_aia_mia.metrics.balanced_accuracy(dset, y, yhat)[source]

Compute the blanced accuracy.

Parameters:
  • dset – Data with label and predictions.

  • y (str) – Key for label.

  • yhat – Key for prediction.

Type:

str

Returns:

Balanced accuracy.

Return type:

float