def binarize_probabilities(stprob, threshold=0.0):
    """Map probabilities > threshold to 1.0 and others to 0.0."""
    sprob, tprob = stprob
    sprob = (sprob > threshold).astype('float')
    tprob = (tprob > threshold).astype('float')
    return sprob, tprob