one move: define the contract
Report more than accuracy: compute precision, recall, F1, and confusion counts for a binary classifier. In the Metrics Lab system, implement this level as a deterministic contract before composing it with the next service.
def classification_report(y_true, y_pred, positive=1): return {'accuracy': ..., 'precision': ..., 'recall': ..., 'f1': ..., 'confusion': ...}
classification_report([1, 1, 0, 0], [1, 0, 1, 0])
?
classification_report([1, 0], [1, 0])