stanbkt.utils.accuracy#
- stanbkt.utils.accuracy(correctness, predictions)#
Compute accuracy by thresholding predicted probabilities at 0.5.
- Parameters:
correctness (
TypeAliasType) – Flattened binary correctness labels (0 or 1).predictions (
TypeAliasType) – Flattened predicted probabilities in [0, 1].
- Returns:
Proportion of correctly classified observations.
- Return type: