def remove_labels_with_uncertainty(probabilities, labels):
    """
    Iterate through the probabilities matrix and reset to noise any
    cluster label probabilities that are not 1.
    """
    for idx, p in enumerate(probabilities):
        if p < 1.0:
            labels[idx] = -1
    return labels
